From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/48403 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el proposed group parameters Date: Tue, 31 Dec 2002 01:02:21 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: <873ctztyth.fsf@mail.paradoxical.net> <87bs8nsh7g.fsf@mail.paradoxical.net> <87fzxziifw.fsf@wesley.springies.com> <87wulrjiba.fsf@squeaker.lickey.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041293503 20350 80.91.224.249 (31 Dec 2002 00:11:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 31 Dec 2002 00:11:43 +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 18TA0U-0005I5-00 for ; Tue, 31 Dec 2002 01:11:42 +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 18T9rm-0000kj-00; Mon, 30 Dec 2002 18:02:42 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 30 Dec 2002 18:03:34 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA15107 for ; Mon, 30 Dec 2002 18:03:19 -0600 (CST) Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18T9rY-0002vx-00 for ; Tue, 31 Dec 2002 01:02:28 +0100 Original-To: ding@hpc.uh.edu Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 32 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 1041292948 10975 80.91.231.2 (31 Dec 2002 00:02:28 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 31 Dec 2002 00:02:28 GMT Mail-Copies-To: never X-Now-Playing: Section 25's _From The Hip_: "Beating Heart (12" Remix)" User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: )bpd\{VX++-iV=Oom0uP-Mm4yPV44?fA5}uy5YhI7fBd_$fon}BL} oOFWi.hV|_Y>kz$cDzQv=x##q/sYTw|HT^Ye{{V`k'h7SD{ecLZ\x&\*.oCUo=,VS5F9/A:CC4_JtD IRn3a(NR]x"'h1F$a[]H$X2#g.<_$'ki_`yxc-XD$Lw?Gg&/MV#u{Siv2vuL%"Y9N%B|fB%|'jYPbV -W!@v@FHI:3)^4%W{uM:QgL=oQ(l`%O,<0sth%.G9:`l`UNi7rU)x,sgG Cancel-Lock: sha1:W9HKyOqtKksBnjbt+ajCvbHvkL4= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:48403 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:48403 Ted Zlatanov writes: > For instance, say a user enabled spam-process-with-ifile for a group, > but also has spam-use-ifile set to nil. What's the accepted Gnus > behavior in this case? Group parameters take precedence over global variables. > Am I approaching the problem the wrong way? Should I eliminate the > system-wide variables and only use group parameters? No, having both are fine. > The existing examples of gnus-define-group-parameter didn't show the > code I needed, and I'm not sure how to use that function. I would > like to use choices instead of simple booleans, so for instance > spam-process-with-ifile and spam-process-with-bogofilter would just be > two choices in the list spam-process-backends, and the group type > would be 'ham or 'spam. That would be better than booleans, I think. > So how do I use gnus-define-group-parameter to define a list of > symbolic tags, and then later in other code check whether a tag is in > the current list? Any help is greatly appreciated. I don't think there's any code in the `gnus-define-group-parameter' macro for doing that, but extending it to support, say, a `choice' in addition to the other types should be doable. After all, the macro basically defines a `defcustom' (that has support for `choice') and a function... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen