How to get attachments from signed email - Exchange 2010, EwsManagedApi RRS feed

  • Question

  • Hello,

    I need to scan public folder on Exchange 2010, read emails and save attachments. My service works fine with no-signed emails. But if the email is signed, I can read and save only one attachment - the signature.

    I use library EwsManagedApi v 1.1

    Here is the code, how I create email message object:

    EmailMessage message = EmailMessage.Bind(_exchangeService, item.Id, new PropertySet(BasePropertySet.FirstClassProperties,EmailMessageSchema.Attachments));

    Then I use message.Attachments[ index ] to read attachments. 

    Thanks Vaclav Macak

    • Moved by Lie You Monday, January 23, 2012 6:09 AM Move it for good discussion (From:Visual C# General)
    Friday, January 20, 2012 12:13 PM