How to set up a Mail.app rule for removing attachments

attachmentsmail-rulesmail.app

While Mail.app offers a menu item for removing attachments from e-mail, I find myself wanting to make a rule for removing attachments from e-mails. Anyone knows how that can be done? AppleScript, perhaps?

So basically, a Mail.app rule that works like this:

  1. If sender is suchandsuch and attachment type is executable (this is already possible).
  2. Remove attachments from e-mail

Best Answer

I just made a screencast how to do this (however, you have to delete the message in order to remove the executable):

enter image description here