Pulling out failed email from Inbox
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Usha_Iengar
Posted On:   Friday, November 7, 2003 12:37 PM

I am writing an application that needs to pull out all failed message notifications and store them for further action. Does the Message contain an attribute that I can inspect to determine whether the message is a failure notification?

Re: Pulling out failed email from Inbox

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, November 7, 2003 03:07 PM

Look up (e.g. at www.imc.org) the RFC's concerning DSN (Delivery Status Notification), which is the official way now, to return such "MAILER-DAEMON bounces".


I think you might end up having to look for a number of clues, in the envelope (e.g. the null sender "<>" is supposed to be used for bounces), headers, and even parse the body content too (e.g. the DSN status/failure codes are, I think, only present in the body text. And there will be a multipart content-type with an embedded text/rfc822 where the bounced original message might be included, at least sometimes, though not always).


And even this will only work for bounces from well-designed mailers that implement the standards correctly. Hopefully, though, most of your clients will be using such mail systems......

About | Sitemap | Contact