EWS Managed API: How to get all attachments from email 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

    Monday, January 23, 2012 9:37 AM