Regular expression for bounce email message

Posted by Ryan on Stack Overflow See other posts from Stack Overflow or by Ryan
Published on 2009-10-26T22:52:18Z Indexed on 2010/05/09 2:48 UTC
Read the original article Hit count: 321

Filed under:
|
|

I am looking for a regular expression (or other method if there is such a thing) for detecting bounce email messages. So far I have been going through our unattended mail box and adding strings that I find into a regex. I figured someone would have something that is already complete rather than me re-inventing the wheel.

Here is an example of what I have so far:

/reason: 550|permanent fatal errors|Error 550|Action: Failed|Mailbox does not exist|Delivery to the following recipients failed/i

© Stack Overflow or respective owner

Related posts about bounce

Related posts about email