I am a developer on OpenPop.NET .
These are just some of the reference data about letters that contain attachments. Tony Pony's answer is the way to go.
I also had the problem of distinguishing attachments from non-attachments when I implemented that part of OpenPop.NET. MIME has a Content-Disposition
header that can determine if a specific part is an attachment or not.
For example, here is the attachment
Content-Disposition: attachment
and there may be an image in the HTML part of the email
Content-Disposition: inline
As much as this is pleasant, the problem is that many email clients do not add these headers, which makes reading readers such as OpenPop.NET more difficult. We decided not to look at all parts of the HTML email address to see which images are referenced, and therefore, it now depends on the library user.
If you develop a good solution to the problem, you can add it as an example for the project.
source share