Undeliverable messages

  • Thread starter Thread starter Craig Buchanan
  • Start date Start date
C

Craig Buchanan

Is parsing the subject line for the word 'Undeliverable' the most robust
mechanism for identifying an undeliverable message? Is there not a
standardized message header that deals with this? I need a way to identify
undeliverable messages that will not be affected by localization.

Thoughts appreciated.

Craig Buchanan
 
Brute force is the only reliable method.

Each server that returns an NDR does it differently with different text and
some use a true ReportItem object but most use a MailItem. So you can't rely
on a ReportItem for an NDR or any specific wording.

What you get back from Exchange is different than what you get back from
MDaemon, for example.

In my tests for an NDR filter that sends the NDR's to a SQL server database
I ended up with about a dozen criteria for just undeliverable mail. That
didn't even cover emails rejected due to attachments or content or other
criteria, which often triggered different messages.

Even my brute force tests only trapped NDR's in English. I didn't add
equivalents for any other languages.
 
Back
Top