From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70145 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: To/Cc address uniquification Date: Tue, 31 Aug 2010 00:31:41 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1283207549 17796 80.91.229.12 (30 Aug 2010 22:32:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 22:32:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18531@lists.math.uh.edu Tue Aug 31 00:32:28 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 1OqCtv-0001gh-OR for ding-account@gmane.org; Tue, 31 Aug 2010 00:32:28 +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 1OqCtR-0002xA-27; Mon, 30 Aug 2010 17:31:57 -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 1OqCtP-0002wv-Ky for ding@lists.math.uh.edu; Mon, 30 Aug 2010 17:31:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OqCtL-0001Kn-0O for ding@lists.math.uh.edu; Mon, 30 Aug 2010 17:31:55 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OqCtK-0005Nt-00 for ; Tue, 31 Aug 2010 00:31:50 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OqCtJ-0001J0-Vb for ding@gnus.org; Tue, 31 Aug 2010 00:31:49 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Aug 2010 00:31:49 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 31 Aug 2010 00:31:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 43 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWBhIsDAwX8/PxdXWPU 2N0ICAowMTT////+//4SEhX/JO+HAAACVklEQVQ4jVWUwYrbMBCGh5XxuTrkkFtRDZujWruG3Iwr Nj1uCAr4lkW7Aj2B97yX+Jg2jUFv25mxnGQHQsJ80v9rRqNAySEAI8ZYqRQFTAAY2O51BuoT6G47 EGjUmUC5/1kVrSnww0DPwO3eqkK1RaFMktKcF9bav6TyMXsIMQE81T/WH2ZzmGIdgntojfk9DMMH LPyVoJQdN0qtEAwgpdw7PnKwdmvtqcc4HhlIuaDFlLa2eyTQJyAXW2Rbiajb9BwJyIXE1VLegT+Y 9KhCW0iMpQi8yMX5xdqLTbHvE/gu93UX3KV725KSPc/gBSW8KzsH6+0nQH5e5A4LzImc7oA96Roy Y0xu78AS7y2WmvJMnmfwRdgYR835zKzt7gYCtvvAoMnj7bhLX4Y4jky0D5crkHT6McTKqKez92F3 B7AStMmKEEP01zqW2wnEEUK84NdDAjuow0j+cYwcXaUYPIvcHwoQdYy4z1NVjjoPJwSjadq2eIqj qwnEBwb5moRcpr7igDkfu0v8MYFwoUP5Q4ZtdFzuK4FziNjf6DEAnpzw1Ae+2iVtwHTp4ZBjG0IC eKfdiHkncIRF6YMP8XBEEGbwrSyxiyTpDzgQ4LFsAjSLWSMYsDmZoUXNz6GBmswqBiFO3hRVU9IK LtB7KsJPc60bUQoNmwn4ab2eXxZk3ETMoYNOOSiazEzdxZfmvWhgXqzm2SWAFSSQbomBFnVZtWnL 5gY0aKEb04ChYTzeAGS/EKhHdVXnGABaZRqjjsf+feBMjz/e8Tlnq/7DtOmfZTXwU17hz/9AaVrq Q1IuCQAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: LCD Soundsystem's _This Is Happening_: "I Can Change" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:PfGDi9s/3zDDA+oOYKrB6Hc/Xz8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70145 Archived-At: That should be a word. A very common situation at work is that I've misconfigured the MTA on my machine, so messages from me to To: cvs is expanded by the MTA to To: cvs@beatriz.netfonds.no instead of cvs@netfonds.no. That, in itself, is OK, but then somebody responds to it and somehow both cvs@beatriz.netfonds.no and cvs@netfonds.no get in the To/Cc headers, and then everybody gets two of everything and I have to edit the headers and AAARGH. Now, sensible people might suggest that I just fix the configuration on my MTA, but, man! That's boring. So I want some functionality in Message that would root out these obvious duplicates. But I want it to be general. Here's what I envision: (setq message-uniquifications '(("\\([^@]+\\)@netfonds.no" "\\1@.*\\.netfonds.no") ;; Meaning that if you have foo@netfonds.no in the recipient list, ;; then all instances of foo@.*.netfonds.no should be removed. ("bugzilla@" ".*") ;; Meaning that if bugzilla is in the recipient list, then remove ;; all the other addresses. ("\\([^@]+\\)@\\(.*\\)$" "\\1@.*\\.\\2") ;; This would be a general rule that most people might want... )) Doesn't that sound slightly useful? And there's the \1 literal string expansion thing again that we were talking about earlier. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen