Outlook Mail attachments not completely shown

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Mail attachments not completely shown
 
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

great. I have no time limit. If you Need some days, there´s no problem.

Have a nice weekend.

Regards

Thomas
Thomas Bach
Posted 30 Mar, 2012 12:16:23 Top
Andrei Smolin


Add-in Express team


Posts: 15200
Joined: 2006-05-11
Many thanks, Thomas!

Hopefully, I'll finish testing this on Wednesday. Once again, mny thanks.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 02 Apr, 2012 09:37:37 Top
Andrei Smolin


Add-in Express team


Posts: 15200
Joined: 2006-05-11
Hi Thomas,

I've updated the sample project demonstrating how to determine if an attachment is embedded.

VS 2005, VB.NET
http://www.add-in-express.com/files/projects_pub/adx-ol-get-embedded-attachment-vb.zip

The project is developed with Option Strict On to allow converting it to CSharp using any free VB.NET-C# convertors available on the web.

The code is tested in Outlook 2003, 2007 & 32-bit and 64-bit Outlook 2010.

The algorithm follows Ken Slovak's suggestion at http://social.msdn.microsoft.com/Forums/en-SG/outlookdev/thread/4e005509-56de-47c0-99cb-b5ac5a972789:

If PR_ATTACH_CONTENT_ID and PR_ATTACH_CONTENT_LOCATION aren't null, or if the attachment flags == 4 ("http://schemas.microsoft.com/mapi/proptag/0x37140003" ) or if the attachment method == 6 ("http://schemas.microsoft.com/mapi/proptag/0x37050003" ) it usually indicates an embedded attachment of one sort or another.


These MAPI properties are retrieved using Extended MAPI in Outlook 2000-2003 and using PropertyAccessor in Outlook 2007-2010.

Although the algorithm works correctly on the sample emails that you sent me (and also on emails I created here), it may require further polishing.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2012 06:08:22 Top
Thomas Bach




Posts: 89
Joined: 2009-10-15
Hi Andrei,

thanks for this. I´ll
try it at the Weekend and give you a Feedback next week.

Regards

Thomas
Thomas Bach
Posted 04 Apr, 2012 07:47:40 Top
Andrei Smolin


Add-in Express team


Posts: 15200
Joined: 2006-05-11
Thank you, Thomas!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 04 Apr, 2012 08:00:58 Top
Andrei Smolin


Add-in Express team


Posts: 15200
Joined: 2006-05-11
Hi Thomas,

Do you have any news for me?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 12 Apr, 2012 08:53:34 Top