Undeliverable messages

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top