C-Command Software Forum

Problems with drone

I have followed all the directions of setting up a drone, but when I drag messages into the TrainGood, or TrainSpam nothing happens to them ever. What could I be doing wrong?

I have set up 2 rules, remote good training where if any account my mac (the name of the account)
run applescript remotetraininggood

the appplescript is below

on perform_mail_action(info)
tell application “Mail”
set _mailbox to mailbox “TrainGood” of account “my mac”
repeat with _message in messages of _mailbox
set _source to _message’s source
tell application “SpamSieve” to add good message _source
set _message’s mailbox to inbox of account “my mac”
end repeat
end tell
end perform_mail_action

any ideas or anyone see something wrong with the way its setup?


added links to pics of the way im configured

With the drone setup, the messages will only be moved out of the training folders when you receive a new message in that account. What does your rule list look like in Mail?

I have received many new messages since setting it up.

the rule list is

remote good training
remote spam training

You could temporarily remove the first and last lines of the script, then run it from within Script Editor to see whether Mail reports an error.

I get the error

Mail got an error: Can’t set inbox of account “my mac” to inbox of account “my mac”.

when i do that

Please try changing:

set _message's mailbox to inbox of account "my mac"


set _message's mailbox to mailbox "INBOX" of account "my mac"

worked…thanks really appreciate the help :slight_smile: