Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'An AppleScript to trash empty emails' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to trash empty emails
Authored by: TigerKR on Feb 27, '06 10:56:16AM

Rob, Mail won't allow empty fields when defining a rule. But if you could use an empty field, because the 'content' can be either 'null' or 'new-line', and there is no way to use a combination of 'any' and 'all' for Mail's rules, there is no way to set-up the rules in Mail without the applescript, unless you used two different rules.

Rule 1. IF ALL -> Subject = "" Sender ="" Content = "" THEN DELETE
Rule 2. IF ALL -> Subject = "" Sender ="" Content = 'new-line' THEN DELETE

But that's a moot point if you can't use blank fields in Mail's rules.

[ Reply to This | # ]