From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49278 Path: main.gmane.org!not-for-mail From: Raja R Harinath Newsgroups: gmane.emacs.gnus.general Subject: Re: Problems with spam filtering and bogofilter. Date: Wed, 15 Jan 2003 15:17:19 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: <4nptqyb46y.fsf@koz.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042665492 31167 80.91.224.249 (15 Jan 2003 21:18:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2003 21:18:12 +0000 (UTC) Cc: ding@gnus.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18YuvI-000867-00 for ; Wed, 15 Jan 2003 22:18:09 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18Yuux-0000q8-00; Wed, 15 Jan 2003 15:17:47 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 15 Jan 2003 15:18:41 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id PAA09820 for ; Wed, 15 Jan 2003 15:18:22 -0600 (CST) Original-Received: (qmail 26956 invoked by alias); 15 Jan 2003 21:17:21 -0000 Original-Received: (qmail 26951 invoked from network); 15 Jan 2003 21:17:21 -0000 Original-Received: from mail.cs.umn.edu (128.101.32.202) by 66.230.238.6 with SMTP; 15 Jan 2003 21:17:21 -0000 Original-Received: from bose.cs.umn.edu (bose.cs.umn.edu [128.101.35.195]) by mail.cs.umn.edu (Postfix) with ESMTP id 709091131D; Wed, 15 Jan 2003 15:17:20 -0600 (CST) Original-Received: by bose.cs.umn.edu (Postfix, from userid 818) id B5BE23269; Wed, 15 Jan 2003 15:17:19 -0600 (CST) Original-To: Malcolm Purvis In-Reply-To: <4nptqyb46y.fsf@koz.bwh.harvard.edu> (Ted Zlatanov's message of "Wed, 15 Jan 2003 14:31:17 -0500") User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49278 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49278 Hi, Ted Zlatanov writes: > On Fri, 10 Jan 2003, harinath@cs.umn.edu wrote: >> * ham marked and X-Bogosity: No => do nothing >> * ham marked and X-Bogosity: Yes => | bogofilter -N >> * ham marked and no X-Bogosity header => | bogofilter -n >> >> * spam marked and X-Bogosity: No => | bogofilter -S >> * spam marked and X-Bogosity: Yes => do nothing >> * spam marked and no X-Bogosity header => | bogofilter -s > > Hmm, I think I like the exit codes of bogofilter (1 for ham, 0 for > spam). I'd rather use that than the procmail filtering, since IMAP > users often don't have procmail available. That's fine. But, it would be nice to integrate with procmail for people who can and do use procmail. > We can add a new check (spam-check-bogofilter-headers) if anyone is > interested in filtering on the Bogofilter X-Bogosity header and it > gets inserted elsewhere in the mail delivery chain, That can be achieved with the regular gnus splitting machinery. No need for 'spam.el' to worry in this case, IMHO. > but spam-check-bogofilter should not rely on that. So speak up if > you want spam-check-bogofilter-headers added. > > So the invocations will be: > > ham-marked: bogofilter -n > spam-marked: bogofilter -s This should be automatically covered in the "no X-Bogosity header" case above. You really want to check if 'bogofilter' already has incorporated the counts for this message -- and the X-Bogosity header is a good indicator. Also I meant the above rules to be used in the post-processing routine (spam-bogofilter-register-routine), not in the filtering part. My suggestion above will work if the mail was processed by any of: * procmail script with 'bogofilter -u -e -p' * spam-split with spam-check-bogofilter * any other splitting tool which may not even invoke bogofilter - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu