Thanks, Gary!
This is my rewrite:
:0
* !? egrep -is -f /home/user/goodhtml.txt
* ^Content-(Transer-Encoding: base64|type:
(text/html|multipart/(mixed|alternative)))
{
SPAMMER=`formail -rzx "To:"`
SUB=`formail -zx "Subject:"`
TRAP= 'echo '`date`': HTML message from '$SPAMMER' with subject '$SUB'
was
filed in SPAM. '$SPAMMER' was added to the spammer list. >>delete.log
echo '$SPAMMER' >>spammerlist'
:0:
$MAILDIR/SPAM
}
It's working, but I would like to put quotes around $SUB. Any thoughts?
I had to take out the parentheses I was using, as they were generating shell
errors.
In your suggested:
Content-(Transer-Encoding:[ ]*base64|type:[
]*(text/html|multipart/(mixed|
alternative)))
where the characters within [] above are <space><tab>.
did you mean that <space> and <tab> are within *both* sets of [] ? Or did you
mean <space> within the first and <tab> within the second?
Again, my sincere thanks.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail