From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39483 Path: main.gmane.org!not-for-mail From: Josh Huber Newsgroups: gmane.emacs.gnus.general Subject: Re: Generating Mail-Followup-To: headers Date: Fri, 19 Oct 2001 14:23:04 -0400 Organization: Mind your own business, you silly arthur king! Sender: owner-ding@hpc.uh.edu Message-ID: <87bsj3fq0n.fsf@mclinux.com> References: <87y9m9fs6b.fsf@squeaker.lickey.com> <87elo1exsd.fsf@squeaker.lickey.com> <87u1wvkaiv.fsf@mclinux.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035175184 28196 80.91.224.250 (21 Oct 2002 04:39:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:39:44 +0000 (UTC) Return-Path: Original-Received: (qmail 10424 invoked from network); 19 Oct 2001 18:23:20 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 19 Oct 2001 18:23:20 -0000 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 15ueIP-0000gL-00; Fri, 19 Oct 2001 13:23:01 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Oct 2001 13:22:37 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA14925 for ; Fri, 19 Oct 2001 13:22:24 -0500 (CDT) Original-Received: (qmail 10395 invoked by alias); 19 Oct 2001 18:22:33 -0000 Original-Received: (qmail 10390 invoked from network); 19 Oct 2001 18:22:32 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 19 Oct 2001 18:22:32 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id UAA10359 for ding@gnus.org; Fri, 19 Oct 2001 20:22:29 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 43 Original-NNTP-Posting-Host: lowell.missioncriticallinux.com Original-X-Trace: quimby.gnus.org 1003515748 15758 208.51.139.16 (19 Oct 2001 18:22:28 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Oct 2001 18:22:28 GMT X-Go-Away: or I shall taunt you a second time! X-PGP-KeyID: 6B21489A X-PGP-CertKey: 61F0 6138 BE7B FEBF A223 E9D1 BFE1 2065 6B21 489A X-Request-PGP: finger:huber@db.debian.org Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39483 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39483 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > What's so bad about using group parameters for this? > > There is already more machinery in Gnus than most people will ever > need for setting group parameters: by group name regexp (variable > gnus-parameters), by topic hierarchy, separately for each group. > > Oh, one difference would be that my suggestion goes by the group > name, but your suggestion goes by the mail address. Hm. Why is it > necessary to do it by mail address? I think it's nice to use the group parameters for this, in addition to having a list of additional regular expressions to use. (just for flexibility & completeness... take a look at this function I just whipped up: (defun gnus-find-subscribed-addresses () (delete-if nil (mapcar '(lambda (group) (or (gnus-group-find-parameter group 'to-address) (gnus-group-find-parameter group 'to-list))) (delete-if-not '(lambda (group) (gnus-group-find-parameter group 'subscribed)) (mapcar '(lambda (item) (car item)) gnus-newsrc-alist))))) I'm pretty sure that I shouldn't be just accessing gnus-newsrc-alist directly -- someone tell me what I should be doing. oh, and you'll need something like this: (setq gnus-parameters '(("^mail\\.lists\\." (subscribed . t)))) otherwise none of the groups will have the "subscribed" parameter set. ttyl, -- Josh Huber