0 votes

How can I ignore inline attachments, when downloading email from IMAP server?

by

1 Answer

0 votes
 
Best answer

You can not ignore inline attachments, when you download entire email.

Attachments and inline attachments are part of the email message. They are embedded inside the message usually using BASE64 encoding. What is important is that removing them would invalidate SMIME and DKIM signatures.

However, there is a solution for you. You can download only parts of the email message.

by (301k points)
Is it possible to identify these inline attachments? When displaying an email message I want to be able to only show the real attachments (actual files attached by the sender) and not the inline attachments, like images of an e-mail signature in case of a html formatted email.
Mail.dll uses 4 different collections to store mail attachments: NonVisuals - real mail attachments, Visuals - visual elements (usually HTML images), Alternatives - alternative views of the root element other than text, html, rtf (e.g. iCal appointment), Attachments - all attachments (includes Visuals, NonVisuals and Alternatives). You can also use Appointments and VCards collections to access already processed ical appointments and business cards.
...