On Tue, 22 Oct 2002, Josh Trutwin wrote: > # All other mail tagged as spam (eg. with a score higher than the set > # threshold) is tagged as "Probably SPAM" > :0 fBw > * ^X-Spam-Status: Yes > | formail -i "Subject: Warning: Message Probably SPAM"
Why do you have "B" in the :0 line? That means to match the "B"ody of the message against the condition lines. There won't be any X-Spam-Status in the body, and even if there were you wouldn't want to match on it. > # Work around procmail bug: any output on stderr will cause the "F" in "From" > # to be dropped. This will re-add it. > :0 H "H" is the default. It's best not to use it explicitly, because some versions of procmail have a bug wherein the "H"eader flag is never turned off again (applies to all subsequent recipes) once it has been turned on. Doesn't actually matter in this case. > * ! ^From[ ] > * ^rom[ ] Better would be to replace both of those conditions with the single one * ^^rom[ ] where ^^ means to match at the beginning of the entire search area (the beginning of the message header, in this case). > { > LOG="*** Dropped F off From_ header! Fixing up. " > > :0 fhw > | sed -e 's/^rom /From /' > } It'd be somewhat faster to use | sed -e '1s/^/F/' as you've already determined that the first word is "rom " (no need to have sed match it again). ------------------------------------------------------- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk