Contents  SpamSieve Manual  Technical Support

4.4.1   Setting Up an Apple Mail Drone

This section is a continuation of the Setting Up a Spam Filtering Drone instructions for people using Apple Mail.

  1. If you have a single mail account or only wish to remotely train from one account, follow the normal SpamSieve setup procedure in the Setting Up Apple Mail section, with one change: in Step 2, create the new Spam mailbox in your server account instead of in On My Mac. You’re now done with this step.

    Note: If you get an error that there is already a Spam mailbox in the server account, but you don’t see such a mailbox, it may be that Mail is displaying it as the special Junk mailbox. Create a mailbox called Junk on the server and tell Mail to show it under the special Junk mailbox. (On macOS 10.12 and later, go to Preferences ‣ Accounts ‣ Mailbox Behaviors and choose it from the Junk Mailbox pop-up menu. On macOS 10.11 and earlier, select the mailbox and choose Mailbox ‣ Use This Mailbox As ‣ Junk Mailbox.)

    If you have multiple mail accounts (and wish to remotely train from all of them):

    • Create a Spam mailbox in each account.

    • Instead of creating one SpamSieve rule, create one per account. The name of each rule should be SpamSieve - Account 1 (where Account 1 is the Description of your account). The conditions of the rule should say:

      Account Account 1

      The actions should say:

      Move Message Spam [the Spam mailbox you created for this account]

      Mail may ask if you want to apply the rule; click Don’t Apply.

  2. Download the Apple Mail - Remote Training script file. Open it in Script Editor (a.k.a. AppleScript Editor) and add your account name(s) at the top (as described here).

  3. You can test that the script works by running it in Script Editor; it should move any messages in the TrainGood mailbox to the inbox and any messages in the TrainSpam mailbox to the Spam mailbox. Errors will be reported in the All Messages section of the Console application.

  4. Go to Mail’s Preferences window and create a new rule at the top of the list (above the SpamSieve rule) called Remote Training. (The rule’s name must not start with SpamSieve.) The conditions should say:

    Every Message

    The actions should say:

    Run AppleScript […]Apple Mail - Remote Training.scpt

    After choosing Run AppleScript from the pop-up menu, select the file that you created in Step 2 (using either the pop-up menu or the Choose… button).

    Mail may ask if you want to apply the rule; click Don’t Apply.

  5. If you want manually trained spam messages to go to the Spam mailbox on the server rather than On My Mac, use the Change Settings command to tell SpamSieve that you don’t want a local spam mailbox.

  6. If you are using iCloud to sync your Mail rules between multiple Macs, make sure that both the SpamSieve and Remote Training rules are unchecked on all the Macs except for the drone.

  7. If desired, you can set up keyboard shortcuts on any non-drone Macs for moving messages into the Train mailboxes. In Mail’s View menu, choose Show Favorites Bar. Then drag the TrainGood and TrainSpam mailboxes to the favorites bar. There will then be keyboard shortcuts for these messages in the Mailbox ‣ Move to Favorite Mailbox submenu.

     Contents  SpamSieve Manual  Technical Support