Solved

Mozilla Thunderbird - Extracting Attachments from Emails

Posted on 2009-04-08
2
557 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:
mtz1of4 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now