How to find a difference between Attachments and embedded images in the e-mail represented as MHT document?
Thank you in advance,
a_k_
Printable View
How to find a difference between Attachments and embedded images in the e-mail represented as MHT document?
Thank you in advance,
a_k_
Perhaps a bit more info is needed.
Is this a email that is sent directly from IE or is it sent from Word?
Wouldnt the MHT document only contain embedded images as that is the default action of the save as mht type?
Thank you for your replay.
<< Is this a email that is sent directly from IE or is it sent from Word?
in both cases
<< Wouldnt the MHT document only contain embedded images as that is the << default action of the save as mht type?
The embedded images (that should appear as part of the e-mail body) and attachments (attached documents that should not be presented in the e-mail body) are embedded in the e-mail MHT stream. The embedded images may be linked to the e-mail body different ways. Both types in the most cases have "name" and filename" attributes in the MHT (RFC822). How to determine which ones are attachments?
Thank you,
a_k_
If an image is embedded in the body of an email it will have a "cid:" tag in the src property of the img html tag.
Code:<IMG alt="" hspace=0
src="cid:062138107@12072007-31E7" align=baseline
border=0>
Unfortunately not all the embedded images have cid tags. According to the RFC 2557 ("MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)") the reference can also be defined by "Content-Location".
So attachment should not have "Content-ID" and "Content-Location"?
Or it may have "Content-ID" and/or "Content-Location" but not referenced in the body?