Attachment.Size returns 0 for an attachment of type .msg (an email saved as a file and then attached to another email) RRS feed

  • Question

  • Hi All,

    We have a VSTO plug-in that intercepts ItemSend event of an email and iterates through its attachments. It has to check the size of attachments. It gets the correct size of all attachments successfully except attachments of .msg type (emails saved as attachments).

    long size = attachment.Size;//This is zero for msg attachment.

    Can any one guide me about how to access the correct size of such attachments ?

    Thanks & regards,

    Nadeem  Ullah

    Thursday, December 30, 2010 2:29 PM