At 00:51 2002-08-10 -0400, Mohun Biswas did say:
From my brief readings so far it appears procmail is mostly used to
filter out messages identified as spam and/or carrying viruses (or to
sort messages into mailboxes of course).
Or to autoreply, selectively forward, or pass messages to other programs
(say for archiving to the web or extracting data from them), or...
What you see here frequently is what many new users spend a lot of time
implementing (spam and viruses) because they're common problems affecting
many users. They certainly aren't what procmail was created to singularly
deal with, but it does deal with them.
While I plan to do that stuff eventually, the first thing I'm
trying/hoping to do is to strip out certain attachments. Not the messages
containing the attachments, mind you - the attachments only.
You'll need an external program capable of interpreting MIME.
information and is sent for the intended recipient(s) only....") as an
attachment on every outgoing message. As a result, my PC fills up with
many many copies of this "<company>_disclaimer.txt" file.
:0f
* ^From:(_dot_)*(_at_)someinnanecompany\(_dot_)tld
| someperlscript_that_prunes_out_the_disclaimer.pl
Similarly, my mail client is also littered with .vcf files even though I
don't care to accept .vcf.
Similar recipe to the above, but different code in the perlscript. Now,
write the script, or adapt another one (stripmime.pl might be a good start,
though it strips *ALL* mime attachments - that's why you'd need to modify it).
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail