开发者

How to remove attachments from received mail in ActionMailer?

开发者 https://www.devze.com 2023-03-30 22:13 出处:网络
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 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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号