Table of Contents

Deleting mail attachments

For ages1) I have been using a Perl script called demime written by Nick Simicich in order to remove attachments and HTML from message, e.g. for mailing lists or my personal archiving. demime still works astonishingly good but it does have its quirks, and it is rather radical in what it does. Hence, I was always looking for alternatives.

Recently, I came across remove_mime.pl by Aaron Ciuffo which is based on a script by Mike A. Leonetti. Eventually, these two encouraged me to write my own script: attachment_filter.pl

Resources

A crude summary of what I have found so far on the Perl side:

Scripts

Modules

Further reading

1)
Well, almost ages, but I do remember the times where e-mail had no attachments ;-)