Subject: Re: Cleaning off attaches.
To: None <netbsd-help@netbsd.org>
From: cape canaveral <somniosus@gmail.com>
List: netbsd-help
Date: 12/11/2004 17:13:47
On Fri, 10 Dec 2004 16:33:53 -0600, Richard Rauch <rkr@olib.org> wrote:
> 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 probably don't know what I'm talking about."  http://www.olib.org/~rkr/
> 

I believe mimedefang is commonly used for this purpose.  From
http://www.roaringpenguin.com/penguin/open_source_mimedefang.php:

"MIMEDefang can inspect and modify e-mail messages as they pass
through your mail relay. MIMEDefang is written in Perl, and its filter
actions are expressed in Perl, so it's highly flexible. Here are some
things that you can do very easily with MIMEDefang:

    * Delete or alter attachments based on file name, contents,
results of a virus scan, attachment size, etc.
    * Replace large attachments with links to a centrally-stored copy
to ease the burden on POP3 users with slow modem links.
    * Add boilerplate text to e-mail messages.
    * Customize filter rules based on domain, user-name, relay machine, etc.
    * Reject unacceptable messages, where you define what "unacceptable" means.
    * Add or delete recipients for a message."