Hi,
I try to pull mails from my Exchange server and save them as MSG files. The code is somewhat like:
_client = new ExchangeClient(mailboxURI, credentials);
ExchangeMessageInfoCollection messages = _client.ListMessages(mailbox.InboxUri, false);
foreach (ExchangeMessageInfo info in messages)
{
MailMessage message = _client.FetchMessage(info.UniqueUri);
const int avgMessageSize = 100 * 1024;
using (MemoryStream memStream = new MemoryStream(avgMessageSize))
{
message.Save(memStream, MessageFormat.Msg);
…
}
If the message contains embedded images, they are not saved in the MSG file, I just see some hyperlink like:
cid:image001.png@01C8A9E5.01CD0F00
Is this by design or do I miss something?
Thanks
Bart