koodaamo / tnefparse

a TNEF decoding library written in python, without external dependencies
GNU Lesser General Public License v3.0
49 stars 37 forks source link

TNEFMAPI_Attribute for attachment content-id #14

Closed TZanke closed 5 years ago

TZanke commented 7 years ago

in Mail HTML embedded images are references by content-id. At the moment i could not find this value by TNEFMAPI_Attribute class. So i searched in the mapi_attrs. The content-id attribute has the name '14098' => 0x3712

Should 0x3712 added to the TNEFMAPI_Attribute class?

petri commented 7 years ago

Sounds ok. Could you provide a pull request with a link pointing to relevant documentation?

petri commented 6 years ago

How is this different from MAPI_CONTENT_IDENTIFIER (0x0008) ?

petri commented 6 years ago

Looks like the definition for 0x3712 is here: https://msdn.microsoft.com/en-us/library/office/cc765868.aspx . Also see https://msdn.microsoft.com/en-us/library/office/cc979184.aspx on canonical properties.

Can you please share more of your context? What mail program are you using? Can you share the attachment file that uses this property (content-id, ie. 0x3712)?

TZanke commented 6 years ago

I created this file last summer with Outlook 2010 / Microsoft Outlook 14.0 as a test file for special chars and attachments. winmail.dat.zip

At the moment i use the 14098 to get the content id image003.jpg@01D2EE6A.85652C70

jrideout commented 5 years ago

This was fixed in b21d36e189e590c7cb44e204e75bed49e08764f4. You can use MAPI_ATTACH_CONTENT_ID

petri commented 5 years ago

@TZanke see above comment. Closing.