views:

9

answers:

0

I have a plugin that is attempting to get all the attachments in a OL message So I have code like so

int AttachCount = MailItem.Attachments.Count;
for (int index = 0; index < AttachCount; index++)
{
    Outlook.Attachment nextAttachment = MailItem.Attachments[(index + 1)];
    if (nextAttachment != null )
    {
      //process
     }
 }

The problem with this code is that it is retrieving images which are part of the signature as well from the body so essentially I guess I only want the files that are in Attachments section not in the body This is an HTML mail. Also the position and type members of the attachment object are not giving any differentiating information Thanks