Detect E-Mail Conversation with Exchange Web Services
Is it possible to detect for incoming mails, if they belong a to preceding e-mail conversat开发者_Python百科ion?
If the message has been replied to using a Microsoft email client it should have the PidTagInReplyToId property set with the id of the message replied to. This will enable you to build up a message chain from each reply to the source email.
Otherwise you'll have to rely on the "Re:" prefix in subjects and common subject names. You could also do something clever regarding who has been sent an email (in case of common subjects) or utilising the previous message body in the new email - though that obviously cannot be relied upon.
精彩评论