I m currently having a mess about with catching, parsing and sorting bounced emails. I have the basics set up nicely and it does what I want, which is nice... problem being is that there seems to be no standard to the messages returned in the bounced email.
For example, some servers return the error code as specified by RFC 1893 and I can nine times out of ten pick that up via a simple regex thing. But sometimes servers just respond saying that the email has bounced, with either no reason given or a reason worded entirely different to any standards.
So I guess my question is, has anyone got any solution to this? I don t want to be searching for a billion and one possible strings in the email returned to be honest. Yet it would be nice to not have to resort to reason unknown or something similar.