Solved

Mozilla Thunderbird - Extracting Attachments from Emails

Posted on 2009-04-08
2
556 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

21 Experts available now in Live!

Get 1:1 Help Now