From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48873 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Trouble with spam.el and ifile Date: Tue, 07 Jan 2003 11:52:01 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1041958336 18341 80.91.224.249 (7 Jan 2003 16:52:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 16:52:16 +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 18Vwxa-0004lL-00 for ; Tue, 07 Jan 2003 17:52:14 +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 18Vwxg-00014l-00; Tue, 07 Jan 2003 10:52:20 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 07 Jan 2003 10:53:14 -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 KAA11291 for ; Tue, 7 Jan 2003 10:53:03 -0600 (CST) Original-Received: (qmail 38122 invoked by alias); 7 Jan 2003 16:52:05 -0000 Original-Received: (qmail 38117 invoked from network); 7 Jan 2003 16:52:04 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by 66.230.238.6 with SMTP; 7 Jan 2003 16:52:04 -0000 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id LAA26129 for ; Tue, 7 Jan 2003 11:52:03 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id LAA19915; Tue, 7 Jan 2003 11:52:03 -0500 (EST) Original-Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id LAA05052; Tue, 7 Jan 2003 11:52:02 -0500 (EST) Original-To: ding@gnus.org User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Artificial Intelligence, sparc-sun-solaris2.8) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48873 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48873 --=-=-= I've been using ifile-gnus.el for spam sorting, and figured I'd try spam.el's newfangled ifile support. Really fresh CVS... Problem 1: Gnus tries to feed all of my mail into a "non-spam" group. It looks like the sense of spam-ifile-all-categories is backwards in the code from what the documentation says; inverting the test fixes it. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- spam.el.orig Tue Jan 7 11:41:17 2003 +++ spam.el Tue Jan 7 11:41:22 2003 @@ -522,7 +522,7 @@ (if (not (eobp)) (setq category (buffer-substring (point) (spam-point-at-eol)))) (when (not (zerop (length category))) ; we need a category here - (if spam-ifile-all-categories + (if (not spam-ifile-all-categories) (when (string-equal spam-ifile-spam-category category) (setq return spam-split-group)) (setq return category))))) ; always accept the ifile category --=-=-= Problem 2: Spam doesn't actually seem to get noticed by ifile, and if I visit my spam group the articles are marked "Y" rather than "H". My .gnus file has, inside a setq block: spam-junk-mailgroups '("mail.misc.spam") spam-split-group "mail.misc.spam" spam-use-ifile t My nnmail-split-fancy begins with (: spam-split) as pretty much the first thing. Any hints? -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell --=-=-=--