Solved

Mozilla Thunderbird - Extracting Attachments from Emails

Posted on 2009-04-08
2
561 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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