From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48433 Path: main.gmane.org!not-for-mail From: Michael Shields Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] Do less processing before feeding to bogofilter Date: Tue, 31 Dec 2002 06:39:37 +0000 Organization: Mad Science Research Labs Sender: owner-ding@hpc.uh.edu Message-ID: <87u1guhety.fsf@mulligatwani.msrl.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041316780 12127 80.91.224.249 (31 Dec 2002 06:39:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 31 Dec 2002 06:39:40 +0000 (UTC) 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 18TG3v-00039T-00 for ; Tue, 31 Dec 2002 07:39:39 +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 18TG4A-0005JS-00; Tue, 31 Dec 2002 00:39:54 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 31 Dec 2002 00:40:46 -0600 (CST) Original-Received: from challah.msrl.com (challah.msrl.com [198.137.194.222]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA16134 for ; Tue, 31 Dec 2002 00:40:35 -0600 (CST) Original-Received: (qmail 4921 invoked from network); 31 Dec 2002 06:39:37 -0000 Original-Received: from localhost (HELO mulligatwani.msrl.com) (127.0.0.1) by localhost with SMTP; 31 Dec 2002 06:39:37 -0000 Original-To: ding@hpc.uh.edu Original-Lines: 28 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48433 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48433 I sent this patch a few days ago, but mail.gnus.org ate it. Currently spam-bogofilter-articles uses gnus-summary-select-article to fetch each article; this runs all sorts of washing hooks to verify PGP signatures and the like. It is much faster and less interactive to not do that. 2002-12-19 Michael Shields * spam.el (spam-bogofilter-articles): Select the article body using gnus-summary-show-article t instead of gnus-summary-select-article; this presents the raw text without running any hooks. --- /home/shields/gnus-CURRENT-20021216/lisp/spam.el.orig 2002-12-31 06:38:50.000000000 +0000 +++ /home/shields/gnus-CURRENT-20021216/lisp/spam.el 2002-12-31 06:38:50.000000000 +0000 @@ -525,7 +525,7 @@ (message "%s %d" prefix counter)) (setq article (pop articles)) (gnus-summary-goto-subject article) - (gnus-summary-select-article) + (gnus-summary-show-article t) (gnus-eval-in-buffer-window article-copy (insert-buffer-substring gnus-original-article-buffer) ;; Remove spam classification redundant headers: they may induce -- Shields.