I would like to have a Terminal command run when I receive an email in Thunderbird from a certain address with a certain subject. Is there a way to do this on a Mac?
migrated from stackoverflow.com Apr 1 '12 at 22:25
This question came from our site for professional and enthusiast programmers.
In your Mail Application, create a Rule (Preferences » Rules) which executes AppleScript if the subject matches.
If you want to do it in terminal, look into "procmail" and possibly "fetchmail".