inflex / alterMIME

MIME/email modification tool
BSD 2-Clause "Simplified" License
11 stars 14 forks source link

RFE | Remove all attachments but inline images #1

Open Victor-D opened 6 years ago

Victor-D commented 6 years ago

It should be nice to have an option to remove all attachments but keep inline images.

Content-Disposition: inline; vs Content-Disposition: attachment; sample.zip

inflex commented 6 years ago

Thanks for the submission @Victor-D . I'll see what I can do for you.

gergap commented 5 years ago

The opposite would also be useful. Many emails contain spammy disclaimers with embedded images for twitter, facebook, etc. In our support ticket system its often difficult to find the right attachments like log files or documents, between all the spam images. Also, it wastes storage in our database.

Deleting all embedded images could also be a problem if somebody pastes a screenshot in an HTML mail. I think this hard to distinguish.

The best would be a heuristic to detect email signatures like "--\n" and delete all embedded images from there on.