procmail
[Top] [All Lists]

RE: added headers not always acknowledged.

2004-01-13 11:53:05


This is a section from my .procmailrc where I send incoming messages to my
virus-scanning script, and filter on the X-Virus-Found header:


#now scan for viruses.
:0:vs.lock
* !^X-Virus-Found:
| $HOME/bin/vs


Above, that's a "delivering" recipe, not a "filtering" recipe. Try this:

:0fw:vs.lock
* !^X-Virus-Found:
| $HOME/bin/vs

:0:
* *X-Virus-Found: Yes
suspected-viruses


And this was already mentioned.

:0:
* ^X-Virus-Found: Yes
suspected-viruses

When debugging it is a good idea to have a logfile, and set verbose on.

LOGFILE=$HOME/procmail.log
LOGABSTRACT=yes
VERBOSE=yes




_______________________________________________
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>