From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48887 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: Trouble with spam.el and ifile Date: Tue, 07 Jan 2003 16:05:40 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <4nadic3fo1.fsf@lockgroove.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 1041975502 4994 80.91.224.249 (7 Jan 2003 21:38:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 Jan 2003 21:38:22 +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 18W1QR-0001I8-00 for ; Tue, 07 Jan 2003 22:38:19 +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 18W1Qb-0003hE-00; Tue, 07 Jan 2003 15:38:29 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 07 Jan 2003 15:39:23 -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 PAA11886 for ; Tue, 7 Jan 2003 15:39:09 -0600 (CST) Original-Received: (qmail 487 invoked by alias); 7 Jan 2003 21:25:59 -0000 Original-Received: (qmail 482 invoked from network); 7 Jan 2003 21:25:59 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by 66.230.238.6 with SMTP; 7 Jan 2003 21:25:59 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id QAA29939 for ; Tue, 7 Jan 2003 16:05:44 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id QAA11700; Tue, 7 Jan 2003 16:05:42 -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 QAA24274; Tue, 7 Jan 2003 16:05:41 -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:48887 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48887 Ted Zlatanov writes: > On Tue, 07 Jan 2003, dmaze@MIT.EDU wrote: >> I've been using ifile-gnus.el for spam sorting, and figured I'd try >> spam.el's newfangled ifile support. Really fresh CVS... > > Excellent, my own guinea pig! I mean, tester... :) Oops, knew I shouldn't have spoken up. :-) >> 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? > > Make sure you use the (customize-group "spam") interface. It's much > easier to get the format right that way. Eew. Um, I mean, okay. The custom interface still doesn't make things really clear. (And I missed things doing C-h v spam-, because some of the variables are gnus-spam-*.) But now I have gnus-spam-newsgroup-contents '(("mail.misc.spam" gnus-group-spam-classification-spam)) gnus-spam-process-newsgroups '((".*" (gnus-group-spam-exit-processor-ifile))) gnus-spam-process-destinations '((".*" "nnml:mail.misc.spam")) spam-junk-mailgroups '("mail.misc.spam") spam-split-group "mail.misc.spam" spam-use-ifile t Is this right? It should be clearer in the documentation/Customize descriptions where you need the backend prefix and where you don't. It looks like all of this is set up with gnus-define-group-parameter, and examples with e.g. expiry suggest you don't want it; it still doesn't seem to work for me either way. Now at least incoming articles get filed properly, but if I find a misclassified spam article and run 'S x' on it, it gets the 'H' mark but nothing happens when I exit the group. This happens both with and without the nnml: prefix in the regexps above. > Your spam group(s) need to have the ifile spam-processor added, and to > have the spam-contents set to spam. Customize the group or topic, or > you can do it through customizing the gnus-spam-process-newsgroups > variable. ...I *think* I've got this... > The 'Y' mark stands for a lowered score, right? spam.el only marks > unread articles as spam on summary entry in a spam group, and only > processes spam-marked articles with the group's spam processors on > summary exit (for any group, not just spam groups). Aha. This makes it a little trickier for me to test, since most of my spam happens to have a low score in my spam group. If I mark an article not-spam in the spam group, does it get refiled to the next best group on exit? Also, part of Jeremy Brown's ifile-gnus distribution is a Bourne shell script that can scan an nnml directory tree and prime ifile with your extant messages. It might be good to incorporate this or something like it into Gnus. (This is especially true for spam-stat; doing this classification entirely in elisp looks like it might be a big performance win over ifile, but having to manually initialize spam-stat from several hundred not-spam nnml groups would suck.) -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell