Subject: Re: Cleaning off attaches.
To: Richard Rauch <rkr@olib.org>
From: Perry E. Metzger <perry@piermont.com>
List: netbsd-help
Date: 12/11/2004 16:51:47
Richard Rauch <rkr@olib.org> writes:
> Is there a tool for cleaning off HTML and similar attaches?
>
> I've been receiving a lot of mail from non-technical people, lately,
> who love to attach duplicates in HTML and one often attaches a JPEG.
> (I recently removed the no-HTML-in-email filter from my server in
> order to communicate with some of these people---but really don't
> need these junk attaches cluttering my mailbox.)
>
> Ideally, the tool should be interactive in some way, but if I have
> to say yea/nay to every item, I'd rather have it zap all of the
> attaches by type.

I'm unaware of such a tool, but python has a built in email handling
module that fully parses modern MIME, and it would probably be only 20
or 30 lines of code to do what you want given that library.

Perry