>> # 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.
Copy/Paste error, my bad, that was the problem all along. Grrr. >> # 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/' These are from the procmailrc.example in the SpamAssassin distribution! Maybe someone could encorporate these changes??? > as you've already determined that the first word is "rom " (no need to > have sed match it again). Thanks for your help, seems to be working now... Josh Trutwin http://trutwins.homeip.net ------------------------------------------------------- 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