From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60986 Path: news.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: Re: No Gnus doesn't like the obsolete spam syntax Date: 20 Sep 2005 12:13:18 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <4nirwvk99d.fsf@lifelogs.com> References: <874q9yy02n.fsf@windlord.stanford.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127233007 17628 80.91.229.2 (20 Sep 2005 16:16:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2005 16:16:47 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m9518@lists.math.uh.edu Tue Sep 20 18:16:45 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EHkkc-0007V8-A8 for ding-account@gmane.org; Tue, 20 Sep 2005 18:13:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EHkkW-0004WK-00; Tue, 20 Sep 2005 11:13:40 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EHkkJ-0004VH-00 for ding@lists.math.uh.edu; Tue, 20 Sep 2005 11:13:27 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EHkkF-00062l-MP for ding@lists.math.uh.edu; Tue, 20 Sep 2005 11:13:26 -0500 Original-Received: from clifford.bwh.harvard.edu ([134.174.9.41] helo=mail.bwh.harvard.edu) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EHkkE-0007hW-00 for ; Tue, 20 Sep 2005 18:13:22 +0200 Original-Received: (qmail 17249 invoked from network); 20 Sep 2005 16:08:37 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: rra@stanford.edu, ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) (internal?.8?user:?tzz@[134.174.8.118]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 20 Sep 2005 16:08:35 -0000 Mail-Followup-To: "Russ Allbery" , ding@gnus.org Original-To: "Russ Allbery" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:050920:rra@stanford.edu::+tM2F4U2J2F43lLr:00A7T X-Hashcash: 1:20:050920:ding@gnus.org::t31CfXqlkw5MmqSk:00005pTR In-Reply-To: <874q9yy02n.fsf@windlord.stanford.edu> (Russ Allbery's message of "Tue, 09 Aug 2005 19:53:20 -0700") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on sysblade0.bwh.harvard.edu X-Spam-Status: No, score=-1.6 required=5.8 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60986 Archived-At: On Tue, 09 Aug 2005, rra@stanford.edu wrote: > Just a quick note in case it saves someone else some time. > > I used to have: > > (custom-set-variables > '(gnus-parameters > '(("^nnml:spam\\..*" > (spam-contents gnus-group-spam-classification-spam) > (spam-process (gnus-group-spam-exit-processor-bogofilter > gnus-group-ham-exit-processor-bogofilter)))))) > > (with more gnus-parameters, but that's the relevant ones). This no longer > works with No Gnus (version in the headers). I'm not entirely sure why, > but following the manual's instructions and then fiddling a little to > figure out what they really mean, the following *does* work: > > (custom-set-variables > '(gnus-parameters > '(("^nnml:spam\\..*" > (spam-contents gnus-group-spam-classification-spam) > (spam-process ((spam spam-use-bogofilter) > (ham spam-use-bogofilter))))))) > > It took me a little bit to get the syntax right, since for some reason I > read the manual suggestion and thought it said to replace > > gnus-group-spam-exit-processor-bogofilter > > with > > ('(spam spam-use-bogofilter)) > > literally. That just silently fails with no error message, apparently due > to having one too many layers of parens. Yeah... I wasn't sure about changing to the new style of configuration for exactly this reason - backwards compatibility. I think the pain is worth it, though, as the new format is much better IMO. Was the manual misleading in any way? I'll be glad to fix it. > (Yes, I know you can do this all inside customize. I hate the interface > for customize and also prefer to have commented configurations so that I > can remember why I changed something, which means that I do a lot of > writing code based directly on the manual or using customize to generate a > first draft and then tweaking it.) I'm ambivalent on this issue. It's nice to customize, and for spam.el stuff it's almost required, but on the other hand I like everything in my gnus.el... Of course, don't forget that Gnus has three ways to set group variables, through gnus-parameters, individual global variables, and group/topic parameters... It's insane IMHO. I would prefer to pick one (group/topic parameters are best I think) and provide conversion functions from the others to it. But anyhow :) Ted