Modify Email on IMAP Server?

Question:
I was wondering if the IMAP library for .NET allows me to go into an IMAP server, and change the body of a previous email?

Is any email fair game? Or does it have to be in drafts? If so, is there a special way to save it to the server?

If this does not work, can I delete an old email, and upload a new one?

Answer:
The IMAP protocol does not provide the ability to modify an existing email, so emails in a mailbox are effectively read-only. You may download an email, modify it, delete the original, and “append” the modified email to the mailbox. An example of “appending” an email to an IMAP mailbox is provided here:
http://www.example-code.com/csharp/imap_appendEmail.asp

Tags :