Author |
|
scotty Newbie
Joined: 27 August 2007
Online Status: Offline Posts: 25
|
Posted: 27 August 2007 at 6:58am | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 28 August 2007 at 2:00am | IP Logged
|
|
|
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 |
|
|