Link to home
Start Free TrialLog in
Avatar of mcintyak
mcintyak

asked on

Mozilla Thunderbird - Extracting Attachments from Emails

Microsoft MAPI Controls 6.0  Visual Basic 6  Mozilla Thunderbird 2.0.0.21

I am unable to extract email attachments using MAPI from the Thunderbird email client.  The email appears without attachments  ie AttachmentCount is zero.  The code works when the email client is Microsoft Outlook.  Even if I fudge the counter it still does not find the attachments.  Any ideas why it does not work ?  
Thanks in advance
Tony
txtFrom.Text = MAPIMail.MsgOrigAddress
            txtSubject.Text = MAPIMail.MsgSubject
            txtMessage.Text = MAPIMail.MsgNoteText
'
            lstAttachments.Clear
            ReDim strPathNames(MAPIMail.AttachmentCount)
            For ii = 0 To MAPIMail.AttachmentCount - 1
                If MAPIMail.AttachmentType = mapData Then
                    MAPIMail.AttachmentIndex = ii
                    strPathNames(ii) = MAPIMail.AttachmentPathName
                    strFileName = fncDecodeFileName(strPathNames(ii), 3)
                    lstAttachments.AddItem (strFileName)
                End If
            Next ii
 
MAPIMail  =>  MAPIMessages control instance

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Marc Z
Marc Z
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcintyak
mcintyak

ASKER

Thanks, I can use this as a work around