How to save entire MailKit mime message as a byte array

Viewed 3636

I'm building a simple .net MailKit IMAP client. Rather then pulling emails again and again from the IMAP server, is it possible to store the entire MailKit mime message (in full, including attachments) as a byte array? If so, how?

Then I could write it to MySql or a file and reuse it for testing code changes.

1 Answers
Related