Author |
|
sushanth Newbie
Joined: 12 December 2013
Online Status: Offline Posts: 6
|
Posted: 12 December 2013 at 11:07pm | IP Logged
|
|
|
Hi,
How can i identify whether a mail is an auto reply or not using mailbee pop3 object.
i need to read the mails from mail box and need to identify whether a mail is a auto reply like "Out Of office" auto reply set in outlook, so that i can filter those mails and not process them.
Please advice.
Thanks
Sushanth.B
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 13 December 2013 at 2:00am | IP Logged
|
|
|
You can use our BounceMail component here. Of course, there is a huge variety of those autoresponse message and there's no standard there, but it can help you with the most typical ones, at least.
DeliveryStatusParser is the core class of the component, and the example on its documentation page shows how to get information about the nature of the mail, DetailedType specifically: for autoresponse, it will be DetailedType.AutoReply value.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
sushanth Newbie
Joined: 12 December 2013
Online Status: Offline Posts: 6
|
Posted: 18 December 2013 at 12:48am | IP Logged
|
|
|
Dear Igor,
Thanks for the reply.
I have few points to clear ie if we are using DeliveryStatusParser class then we have to map the xml file for bounced data.
Is there any other method like read the specific details from headers like
a) x-auto-response-suppress
b) x-autorespond
c) precedence
d) auto-submitted
While checking the header of a auto replied mail i also found the header
Return-Path repeated two times like
a) Return-Path:someone@domain.com
b) Return-Path:<someone@domain.com>
but for a normal mail the header is Return-Path:someone@domain.com and coming only once.
Can we identify the auto reply mails from the above header details.
Please advice
Thanks
Sushanth.B
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 18 December 2013 at 1:18am | IP Logged
|
|
|
To put things shortly, BounceMail components analyzes mails based on variety of conditions, templates and search patterns. It's technically impossible to guarantee recognition of a random mail. You can certainly add your own processing rules in your code, in addition to or instead of using BounceMail. However, that will require analyzing a large number of mails to prevent from false positives. For instance, bouncemails which are not autoresponces can still have multiple Return-Path entries, especially if they contain extract of the original mail message.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|