Fetching Message Size

How can we fetch message size somehow with Exchange Server 2007?

Hi Aaron,

Thank you for contacting Aspose support team.

You may please use following sample code which displays message size using ExchangeMessageInfo.Size property.

IEWSClient client = GetAsposeEWSClientTest3();
ExchangeMailboxInfo mailboxInfo = client.GetMailboxInfo();
ExchangeFolderInfo subfolderInfo = new ExchangeFolderInfo();
client.FolderExists(mailboxInfo.RootUri, "Test Folder", out subfolderInfo);
ExchangeMessageInfoCollection msgInfoColl = client.ListMessages(subfolderInfo.Uri);

foreach (ExchangeMessageInfo msgInfo in msgInfoColl)
{
    Console.WriteLine("Size = " + msgInfo.Size);
}