is there an internal check in StoreMessage method if the message already exist on mailserver? like an automatic update?

or do we have to check all messages, delete old one, store new one?

asked 09 Mar '11, 15:06

martin's gravatar image

martin
745
accept rate: 0%


No, there is no such check. It would we very complicated and error-prone, because we can't depend on MessageId because that's an optional header field, and there is no other simple check that would tell us whether the message is already there. We could search for all messages with the same Date and Subject, but then we would have to download all their data to check whether the content is the same as well, which could be a lengthy and complicated process. To make it even more complicated, some mail servers such as Microsoft Exchange have a habit of modifying both the message structure and headers, so a message you download from it is not 100% identical to the message it received.

link

answered 09 Mar '11, 18:23

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×76
×18
×17

Asked: 09 Mar '11, 15:06

Seen: 365 times

Last updated: 24 Mar '11, 10:22