procmail
[Top] [All Lists]

Re: Recipe to strip attachments

2001-03-25 20:58:01
Timothy Luoma <elists(_at_)1stpc(_dot_)org> writes:

I am hoping someone out there can help me. I have written a perl 
script which searches for MIME boundaries in a message and based 
on the header content will strip out the MIME section and replace 
it with something else or filter out certain content from the 
section (such as HTML script and object tags). The perl script 
reads the message in on STDIN and writes all its data out onto STDOUT.

Isn't that exactly what 'metamail' does?

I think Darryl's script has some particular handling of text/html types,
and perhaps multipart messages that contain a text/html type, but I'm
not sure.  If so, this could probably be done by creating a custom
mailcap file, setting the MAILCAPS environment variable to point to it,
then invoking metamail.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>