From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14496 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.gnus.user Subject: Re: message-alternative-emails Date: Sun, 02 Jan 2011 11:41:39 +0100 Message-ID: <87fwtbr3j0.fsf@savara.sat.thregr.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1293964925 29056 80.91.229.12 (2 Jan 2011 10:42:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Jan 2011 10:42:05 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Jan 02 11:42:01 2011 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PZLNx-0003GS-HH for gegu-info-gnus-english@m.gmane.org; Sun, 02 Jan 2011 11:42:01 +0100 Original-Received: from localhost ([127.0.0.1]:53929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZLNx-0004mR-48 for gegu-info-gnus-english@m.gmane.org; Sun, 02 Jan 2011 05:42:01 -0500 Original-Received: from [140.186.70.92] (port=46375 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZLNu-0004mC-Le for info-gnus-english@gnu.org; Sun, 02 Jan 2011 05:41:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZLNt-0004n3-9H for info-gnus-english@gnu.org; Sun, 02 Jan 2011 05:41:58 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:39961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZLNs-0004mz-PW for info-gnus-english@gnu.org; Sun, 02 Jan 2011 05:41:57 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PZLNn-0003AY-Rw for info-gnus-english@gnu.org; Sun, 02 Jan 2011 11:41:51 +0100 Original-Received: from 88-149-142-246.dynamic.ngi.it ([88.149.142.246]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Jan 2011 11:41:51 +0100 Original-Received: from wavexx by 88-149-142-246.dynamic.ngi.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Jan 2011 11:41:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 88-149-142-246.dynamic.ngi.it User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:hNcDCVB46hRYRmxjV7RXmcKa5Yc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14496 Archived-At: On Sun, 02 Jan 2011 08:37:17 +0100, Lars Magne Ingebrigtsen wrote: >> In my .gnus file I have the following: >> >> (setq message-alternative-emails >> (concat >> "\\(email\\)\\|" ... >> "\\(email\\)\\|" ... )) >> >> (setq message-dont-reply-to-names >> (concat >> "\\(" (regexp-quote user-mail-address) "\\)\\|" >> message-alternative-emails)) >> >> (setq gnus-ignored-from-addresses message-dont-reply-to-names) >> >> It sounds like there should be a way to avoid all that repetition. Why >> aren't these variables derived from each-other automatically by default? > > The last variable is derived from `user-mail-address'. The first second > wouldn't make sense to derive from the first, I think. Except that user-mail-address can only accept a single address. Currently: message-alternative-emails: defaults to nil message-dont-reply-to-names: defaults to nil (which means to strip user-mail-address) gnus-ignored-from-addresses defaults to user-mail-address Wouldn't it make more sense to derive message-dont-reply-to-names and gnus-ignored-from-addresses from a combination of user-mail-address and message-alternative-emails? It seems to me that the purpose of such variables is to easily recognize yourself from your different email aliases (except maybe from message-dont-reply-to-names which may be a superset), and such the defaults are a bit unsatisfactory. To be more precise: message-dont-reply-to-names defaulting to: (when message-alternative-emails (concat "\\(" (regexp-quote user-mail-address) "\\)\\|\\(" message-alternative-emails "\\)")) it makes more sense to avoid replying to one of your many identities. then default gnus-ignored-from-addresses from message-dont-reply-to-names? If message-dont-reply-to-names is really supposed to be a superset, then I would prefer gnus-ignored-from-addresses to default of the combination of user-mail-address and message-alternative-emails as above. I still do believe that message-dont-reply-to-names is mostly used as a way to filter out yourself though, and using it as a default for gnus-ignored-from-addresses should be fine. The opposite should be always true however: message-dont-reply-to-names is probably always a subset of gnus-ignored-from-addresses, though it's probably defined too late to be used as a default. Any comment? I could supply a patch for this.