MacOS – Need an Applescript to handle specific incoming mail.

applescriptcontactsemailmacosmail.app

Here's what I'd like the Applescript to do: upon receiving an email (I'm using Apple Mail) from a specific address, I'd like, firstly, that email to be deleted (not just moved to trash), and secondly, to send an email to myself with the simple message: "You got mail." Upon receiving that message, I would then go and read the deleted message using my account's web access (retrieved messages there are only deleted a month later).

The issue I'm trying to solve is that I don't want the emails from that contact to be easily accessible by anyone using my computer. I could create a new email address just to receive mail from that contact, and keep that address completely off of Apple Mail, but that would force me to manually check the account from the web every couple of hours.

Hopefully that's clear.

Thanks

Best Answer

You don't need an Applescript. In Mail.app go to Preferences > Rules and add a rule that will delete any email that meets your specifications.