The
Public
Library
of Chez Luc
Call Number
323.1. LC-1

Title
New Junk Rule

Author
Luke Carter

Category
Professional

Type
Automation

Tags
Mail, AppleScript

About
I get a lot of spam. As a freelancer it's important that I read through it to make sure that new client emails don't miss my inbox. To make this process easier, I create additional junk mail filters in Mac OSX's Mail. In this example I use my 'junk.new.rule' script to create a new filter that will go through spam (after identifying those that aren't spam) and add new rules.

The second part of the script merely is another action I named 'alternate.keys.mail' that will continue adding messages to the dialog box. I perform the script in small batches in case I need to use the computer in between adding rules to the filter - an AppleScript is problematic to stop once it's doing it's thing.

The previous version shows the resulting action if a second second of messages aren't added.