Automate rule creation based on sender in Mail
Jun 22, '05 10:41:00AM
Contributed by: Safar
What I wanted: To ease the creation of rules to filter incoming messages based on the sender in Mail.app. So I wrote this AppleScript to accomplish that objective.
Copy and paste the script into Script Editor, and save the script. Here's how to use it:
- Select a message in Mail.app.
- Call this script (either via the Script menu, or via a hotkey...)
- Choose a name for the folder in which you want to keep messages from this sender
That's it; you're done -- the rule will apply to incoming messages. The folder will be automatically created if it does not exist. Here's another method, which allows better selection of the destination folder (and IMAP folders, too):
- Move any message from the sender you wish to filter into any folder.
- Select this message.
- Call the script.
- The script realizes that we are in a folder which is not the In Box. It then gives you the choice to use the current folder, or to use another one.
[robg adds: I haven't tested this one.]
Comments (8)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20050606162330773