From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55149 Path: main.gmane.org!not-for-mail From: lorentey@elte.hu (=?iso-8859-2?q?L=F5rentey_K=E1roly?=) Newsgroups: gmane.emacs.gnus.general Subject: Typo in spam-check-bogofilter Date: Tue, 09 Dec 2003 02:44:02 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1070934322 21143 80.91.224.253 (9 Dec 2003 01:45:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2003 01:45:22 +0000 (UTC) Original-X-From: ding-owner+M3689@lists.math.uh.edu Tue Dec 09 02:45:09 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ATWw1-0000xG-00 for ; Tue, 09 Dec 2003 02:45:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1ATWvN-0007Y1-00; Mon, 08 Dec 2003 19:44:29 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1ATWvE-0007Xt-00 for ding@lists.math.uh.edu; Mon, 08 Dec 2003 19:44:20 -0600 Original-Received: from eris.elte.hu (line-122-2.gprs.westel900.net [212.51.122.2]) by justine.libertine.org (Postfix) with ESMTP id 667073A003A for ; Mon, 8 Dec 2003 19:44:17 -0600 (CST) Original-Received: by eris.elte.hu (Postfix, from userid 1000) id 256737F82E; Tue, 9 Dec 2003 02:44:02 +0100 (CET) Original-To: ding@gnus.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55149 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55149 --=-=-= I believe there is a small typo in spam-check-bogofilter which causes the function to always return nil. Spam-check-bogofilter-headers should be called in the temporary buffer that contains the X-Bogosity line, not in the article buffer: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=spam.patch Content-Description: spam-check-bogofilter typo Index: spam.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/spam.el,v retrieving revision 6.139 diff -u -r6.139 spam.el --- spam.el 7 Dec 2003 15:39:13 -0000 6.139 +++ spam.el 9 Dec 2003 01:36:28 -0000 @@ -1539,8 +1555,8 @@ (point-min) (point-max) spam-bogofilter-path nil temp-buffer-name nil - (if db `("-d" ,db "-v") `("-v"))) - (setq return (spam-check-bogofilter-headers score))))) + (if db `("-d" ,db "-v") `("-v")))) + (setq return (spam-check-bogofilter-headers score)))) return)) (defun spam-bogofilter-register-with-bogofilter (articles --=-=-= Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable --=20 K=E1roly --=-=-=--