From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70210 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: To/Cc address uniquification Date: Tue, 31 Aug 2010 13:33:24 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87hbia3a4r.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1283279713 26700 80.91.229.12 (31 Aug 2010 18:35:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 Aug 2010 18:35:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18596=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Aug 31 20:35:12 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqVfs-0008A9-0D for ding-account@gmane.org; Tue, 31 Aug 2010 20:35:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OqVfr-0001vw-Cg for ding-account@gmane.org; Tue, 31 Aug 2010 13:35:11 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OqVfq-0001vr-GI for ding@lists.math.uh.edu; Tue, 31 Aug 2010 13:35:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OqVfl-00067s-R5 for ding@lists.math.uh.edu; Tue, 31 Aug 2010 13:35:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OqVfl-0001eb-00 for ; Tue, 31 Aug 2010 20:35:05 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OqVfk-00083A-2S for ding@gnus.org; Tue, 31 Aug 2010 20:35:04 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Aug 2010 20:35:04 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Aug 2010 20:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:AHw23ep307zKdXWUtXS72KmwQf0= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70210 Archived-At: On Tue, 31 Aug 2010 00:31:41 +0200 Lars Magne Ingebrigtsen wrote: LMI> That should be a word. LMI> A very common situation at work is that I've misconfigured the MTA on my LMI> machine, so messages from me to LMI> To: cvs LMI> is expanded by the MTA to LMI> To: cvs@beatriz.netfonds.no LMI> instead of cvs@netfonds.no. That, in itself, is OK, but then somebody LMI> responds to it and somehow both cvs@beatriz.netfonds.no and LMI> cvs@netfonds.no get in the To/Cc headers, and then everybody gets two of LMI> everything and I have to edit the headers and AAARGH. You could start with message-hierarchical-addresses and make it more general. LMI> Here's what I envision: LMI> (setq message-uniquifications LMI> '(("\\([^@]+\\)@netfonds.no" "\\1@.*\\.netfonds.no") LMI> ;; Meaning that if you have foo@netfonds.no in the recipient list, LMI> ;; then all instances of foo@.*.netfonds.no should be removed. LMI> ("bugzilla@" ".*") LMI> ;; Meaning that if bugzilla is in the recipient list, then remove LMI> ;; all the other addresses. LMI> ("\\([^@]+\\)@\\(.*\\)$" "\\1@.*\\.\\2") LMI> ;; This would be a general rule that most people might want... LMI> )) LMI> Doesn't that sound slightly useful? Yes, slightly. I'd need it if I ever ran mail services again ;) LMI> And there's the \1 literal string expansion thing again that we were LMI> talking about earlier. Yeah, that's the piece I'd love to see generically available. Ted