Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Undeliverable messages (http://www.outlookbanter.com/add-ins-outlook/84848-undeliverable-messages.html)

Craig Buchanan[_2_] January 20th 09 09:36 PM

Undeliverable messages
 
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



Ken Slovak - [MVP - Outlook] January 20th 09 10:03 PM

Undeliverable messages
 
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Craig Buchanan" wrote in message
...
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



Craig Buchanan[_2_] January 21st 09 01:30 PM

Undeliverable messages
 
Ken-

Seems odd that this type of information isn't in the message's header...

This article
(http://www.codeproject.com/KB/tips/c...ress_list.aspx) has some
interesting ideas, even though they probably won't work w/ Outlook.

Craig

"Ken Slovak - [MVP - Outlook]" wrote in message
...
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Craig Buchanan" wrote in message
...
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






All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com