I want to thanks to the people whom help me and put light
on some points about.
The problem was: F-prot is antivirus which works on input
files but not on stdout. I wanted to save all the messages
in one folder and save the headers of the infected messages
in separate files that named by the $LOGNAME.TheMessageID.
I had done it before with long "sophisticated" recipe - with
help from you, here is the little sharp recipe (;-)
:0 H
* with ESMTP id \/[^ ]+
{
FILE=/var/tmp/Udi/Vdir/$MATCH
HEADER=/var/tmp/Udi/Vdir/$LOGNAME.$MATCH
ANTIVIRUS="/usr/local/sbin/f-prot -dumb -archive -silent"
NOTHING=
:0 c
$FILE
:0 c
* 2^0 $ ! ? $ANTIVIRUS $FILE
* -1^0 $ NOTHING ?? ? /bin/rm $FILE
{
:0 Hh
$HEADER
}
}
:0
/var/tmp/Udi/bigfolder
Thanks,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail