Hi all, I have modified sanitizer.procmail to add a string to the subject line.
# This will add an "X-Found-Virus: Yes" header, if the Sanitizer finds
# an infection. Add more recipies like this to add more headers! :-)
#
:0f
* ? grep 'Enforced policy: save' $SANLOG
{
VAR=`formail -x"Subject:"`
:0 f
|formail -I"Subject: [VIRUS]$VAR" -I"X-Found-Virus: Yes"
}
##
Original subject: "hello"
Modified subject if a file is virus infected: "[VIRUS] hello"
This modificaion works, but I get an "procmail: Extraneous filter-flag ignored" warning,
so please, some procmail expert can check it and tell me whats wrong.
Regards.