开发者

How to parse e-mail bounce notifications

开发者 https://www.devze.com 2023-03-14 15:37 出处:网络
What options do I have to parse t开发者_如何学Pythonhe e-mails that have bounced? I am receiving the bounce notification from e-mail servers but don\'t know what to do with it.there is a bounce parsin

What options do I have to parse t开发者_如何学Pythonhe e-mails that have bounced? I am receiving the bounce notification from e-mail servers but don't know what to do with it.


there is a bounce parsing library available for perl:

http://metacpan.org/pod/Mail::DeliveryStatus::BounceParser


I am not sure about your setup but if you have access to your mail server , you can pipe these messages to a script on your server, which parses these emails and then you can take some decision based on that, for instance flag the email address as invalid or something in your database and not sending any more emails.


I know this question is old but maybe it can help others.

I couldn't find a solution so I made my own. It fetches the mails from an IMAP account and classifies them. It can post the resulting data to a remote http(s) endpoint or just to a simple csv file.

» Bouncefetch

Disclaimer: I'm the author of bouncefetch.

0

精彩评论

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