Justin Shore wrote:
On Sun, 1 Jun 2003, Dallman Ross wrote:
SUBJECT = "`echo $SUBJECT | sed 's/\*\*\*SPAM\*\*\*//g'`
(And I forgot the trailing quotation mark, but okay.)
That would probably work. I wasn't sure if procmail would
let me work with a variables in that fashion. Do you know of
Have you read `man procmailex'?
a regex way to remove any number of occurences of "***SPAM***"
separated by a spam on that line?
Uh, I thought I just gave you that. It's the `g' option to sed.
I'm not forwarding mail with a score >= 10 from a production MTA to a
single mailbox on this machine. It took a while to make it
work believe it or not.
Might have made your life easier if you'd searched the procmail list
archives. We discussed this (again) only last month, iirc. There
are a number of easy ways to do it using scoring. For example,
* -9^0 ^X-Spam-Score: \/.*
* 1^1 MATCH ?? [*]
{ we are here if there are 10+ stars }
Dallman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail