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
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".