procmail
[Top] [All Lists]

Re: VirusSnag.rc - modify to clean & pass through

2004-02-19 15:48:25
On Thu, 19 Feb 2004, Dallman Ross wrote:

After the INCLUDERC, you could have mores recipes including one
with a filtering ("f"-flag) action.

I do something similar to this, although I have my own set of virus
detection rules rather than using Dallman's.

For example, <http://www.well.com/user/barts/email/mimewrap.txt> is an
INCLUDERC-able file that turns a message into an MIME message/rfc822
encapsulation of that same message.  You'd use it with Dallman's rules
something like this:

 :0  # "$TRUE" was defined inside virussnag.rc, as was any applicable $VIR
 * $ TRUE ?? ^^$VIR_A$VIR_B$VIR_Z^^
 {
   MESSAGETEXT = "`cat virusmsg.txt`"
   INCLUDERC = mimewrap.txt
 }

Presto, you have a message with a text/plain part of the contents of
virusmsg.txt, followed by a message/rfc822 part of the original message.
You can of course mangle the original message first with other filters,
as you choose.


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