ruby-on-railsrubyattachmentactionmailermailman-gem

How to remove attachments from received mail in ActionMailer?


I'm using Mailman to pull e-mails from a POP3 server and process them. But, before processing, I want to ignore any attachments that they might have.

I'm looking everywhere to see if Mail supports this, but don't seems so. It looks like I can only see the attachments, but not remove them. Is it so? If yes, is there any workaround?

Thanks!


Solution

  • There is an open issue for this feature in the Mail issue tracker: #33.

    You can try to use the suggested code and see if it works for you.