Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Identify DSN and MDN-Messages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
scotty
Newbie
Newbie


Joined: 27 August 2007
Online Status: Offline
Posts: 25
Posted: 27 August 2007 at 6:58am | IP Logged Quote scotty

Hi,

I trying to process automatically the returned receipts (MDN, DSN) from emails i have sent out.
In order to do so I need to be able to distinguish between "normal" mails and response mails (Message Delivery
Notifications - MDN and Delivery Status Notifications - DSN).
How can this best be achieved?

Best regards,
Back to Top View scotty's Profile Search for other posts by scotty
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 28 August 2007 at 2:00am | IP Logged Quote Andrew

Quotation from RFC-2421:

Quote:
4.4.4 Message/Delivery-status

This MIME body part is used for sending machine-parsable delivery status notifications. Compliant implementations must use the Message/delivery-status construct when returning messages or sending warnings. Compliant implementations must recognize and decode the Message/delivery-status content type and present the reason for failure to the sender of the message.

4.4.5 Message/Disposition-notification

This MIME body part is used for sending machine-parsable receipt notification message disposition notifications. Conforming implementations should use the Message/Disposition-notification construct when sending post-delivery message status notifications. These MDNs, however, must only be sent in response to the presence of the Disposition-notification-to header in 4.2.16. Conforming implementations should recognize and decode the Message/Disposition- notification content type and present the notification to the user.


So once your application downloaded a message, it should iterate through MailMessage.Attachments collection and check if there is an attachment with Content-Type: message/delivery-status or Content-Type: message/disposition-notification.


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide