Solved

Mozilla Thunderbird - Extracting Attachments from Emails

Posted on 2009-04-08
2
559 Views
Last Modified: 2012-05-06
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

0
Comment
Question by:mcintyak
2 Comments
 
LVL 30

Accepted Solution

by:
Marc Z earned 125 total points
ID: 24210616
I'm not sure what you are trying to do with MAPI, but I use this add-on for tb and it works just fine.  Maybe you'll see something you are overlooking.

https://addons.mozilla.org/en-US/thunderbird/addon/556
0
 

Author Closing Comment

by:mcintyak
ID: 31567905
Thanks, I can use this as a work around
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some of the SEO trends we might expect in 2017.
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question