C-Command Software Forum

Junk Folder not being filtered by SpamSieve

After going to http://c-command.com/scripts/spamsieve/apple-mail-server-junk-mailbox and finding an AppleScript that, as I understood it, should resolve my problem, it didn’t. I am totally unfamiliar with AppleScript, but did my best to follow the directions. Based on what was at the website, I adapted the following AppleScript and added the new Rule in Mail.

Here’s the AppleScript:
on accountAndServerJunkMailboxNames()
return {{“gbr123”, “iCloud”, “gbrlaw”, “gbrfamilylaw”, {“Junk”}}}
end accountAndServerJunkMailboxNames

Here’s what the Rule says:
Description: Server Junk Mailbox SpamSieve
If [any] of the following conditions are met:
[Every Message]
Perform the following actions:
[Run AppleScript] [Server Junk Mailbox SpamSieve]

Can anyone tell me what I’m doing wrong? Thanks.

If you want the script to filter the Junk mailboxes of those four accounts, you would need to use:


on accountAndServerJunkMailboxNames()
    return {{"gbr123", {"Junk"}}, {"iCloud", {"Junk"}}, {"gbrlaw", {"Junk"}}, {"gbrfamilylaw", {"Junk"}}}
end accountAndServerJunkMailboxNames

Also, you can test the script by running it in Script Editor and looking for any error messages in the Console application. You can also enable debug logging to see what it’s doing by changing pEnableDebugLogging from false to true.

Thanks
Hi, Thanks so much. I’ll try that. I really like SpamSieve and getting this working right will be a great gift.