From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39493 Path: main.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.gnus.general Subject: Re: Generating Mail-Followup-To: headers Date: Fri, 19 Oct 2001 14:50:59 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: <87adynmk0c.fsf@squeaker.lickey.com> References: <87y9m9fs6b.fsf@squeaker.lickey.com> <87elo1exsd.fsf@squeaker.lickey.com> <87u1wvkaiv.fsf@mclinux.com> <87zo6nftt7.fsf@mclinux.com> <87u1wvftms.fsf@mclinux.com> <87adyngzv4.fsf@mclinux.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035175193 28253 80.91.224.250 (21 Oct 2002 04:39:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:39:53 +0000 (UTC) Return-Path: Original-Received: (qmail 12553 invoked from network); 19 Oct 2001 20:52:23 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 19 Oct 2001 20:52:23 -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 15ugcE-0002Yy-00; Fri, 19 Oct 2001 15:51:38 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 19 Oct 2001 15:51:14 -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 PAA16013 for ; Fri, 19 Oct 2001 15:51:01 -0500 (CDT) Original-Received: (qmail 12536 invoked by alias); 19 Oct 2001 20:51:17 -0000 Original-Received: (qmail 12531 invoked from network); 19 Oct 2001 20:51:16 -0000 Original-Received: from hank.lickey.com (64.81.100.235) by gnus.org with SMTP; 19 Oct 2001 20:51:16 -0000 Original-Received: from squeaker.lickey.com (squeaker.lickey.com [192.168.100.10]) by hank.lickey.com (Postfix) with ESMTP id 02F34EDA7 for ; Fri, 19 Oct 2001 14:51:01 -0600 (MDT) Original-Received: from localhost (localhost [127.0.0.1]) by squeaker.lickey.com (Postfix) with ESMTP id 320ECBDFD for ; Fri, 19 Oct 2001 14:51:01 -0600 (MDT) Original-Received: by squeaker.lickey.com (Postfix, from userid 1000) id 3FDAABD2D; Fri, 19 Oct 2001 14:51:00 -0600 (MDT) Original-To: ding@gnus.org In-Reply-To: <87adyngzv4.fsf@mclinux.com> (Josh Huber's message of "Fri, 19 Oct 2001 16:05:03 -0400") Original-Lines: 47 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 X-Virus-Scanned: by AMaViS snapshot-20010714 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39493 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39493 Josh Huber writes: > +(defcustom message-mft-address-functions nil > + "*Specifies functions for determining list subscription. > +If nil, do not attempt to determine list subscribtion with functions. > +If non-nil, this variable contains a list of functions which return > +regular expressions to match lists. One such useful function might be > +`gnus-get-subscribed-addresses'. These functions can be used in > +conjunction with `message-mft-regexps'." > + :group 'message-interface > + :type '(repeat sexp)) > + > +(defcustom message-mft-regexps nil > + "*Specifies a list of addresses the user is subscribed to. > +If nil, do not use any predefined list subscriptions. This list of > +regular expressions can be used in conjuction with > +`message-mft-address-functions'." > + :group 'message-interface > + :type '(repeat regexp)) This is getting pretty cool! Since these are specifying a list of subscribed addresses, can the variables be message-subscribed-* instead of message-mft-*? Also, I don't think they should be regexps. I can't think of a case where I could described more than one list I'm subscribed to with a regexp. Even if I could I won't like having to explicitly escape all the '.' and other characters in the list addresses. I suppose in a contrived example, you could specify "topic-.*@list\\.example\\.com" to get topic-devel, topic-user, etc. but these cases are rare and people can just explicitly list all of them. So if we really want regexps, maybe: message-subscribed-address-functions message-subscribed-address-regexps message-subscribed-addresses I notice the code is doing regexp matches with strings pulled out of to-address and to-list -- technically incorrect since those aren't regexps. -- matt