* Andre Berger ([EMAIL PROTECTED]) wrote: > * Rob 'Feztaa' Park <[EMAIL PROTECTED]>, 2002-07-29 19:08 -0400: > > Alas! Andre Berger spake thus: > > > By the way, what would an exmaple > > > procmail rule to add a sender to the spamassassin blacklist look > > > like?
Read `perldoc Mail::SpamAssasUser:Conf`. There are blacklist entries you can put in your ~/.spamassassin/user_prefs file that do this much more elegantly and easily. An excerpt: blacklist_from [EMAIL PROTECTED] Used to specify addresses which send mail that is often tagged (incorrectly) as non-spam, but which the user doesn't want. Same format as whitelist_from. Note that is per-user, which I think is what you want. hth, mike > > Probably something along the lines of this (but I'm a little rusty; > > the flags are probably wrong): > > > > :0 Wh: > > * <some spam heuristic, like all caps subject lines> > > |grep "^From: "|<some sed to extract info from the header> >> killfile > > :0 a: > > spamfolder > > This didn't work as expected, > > :0 c: > * ^X-Spam-Status: Yes > | grep "^From:" | grep "@" | grep -v lists.debian | grep -v uzscd5 | grep -v >berger.150 | grep -v andre.berger | grep -v -e "^$" | sed -e 's/ *(.*)//; s/>.*//; >s/.*[:<] *//' >> $HOME/.procmail/blacklist > > :0: > * ^X-Spam-Status: Yes > spamblock > > does, at least for me...
msg30315/pgp00000.pgp
Description: PGP signature