Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: Mark as read and moving

$
0
0
Hi Fastorro,

the method Message.CopyTo creates a copy of the message in the specified folder. The method Message.MoveTo however, creates a copy of the message in the specified folder, and then deletes it from the current folder. The methods do exactly what their names say.

Coming to your question about why the mehod Message.MoveTo uses Message.Remove: The IMAP protocol doesn't provide a way to move messages, only copy, that's why in order to move a message, we need to copy it, and then delete the original one.

I have an idea about improving your code, will post a sample here later.

Greets,

Pavel

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>