From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57395 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Kill recipients in To/Cc headers Date: Sun, 16 May 2004 18:59:12 +0200 Organization: Programmerer Ingebrigtsen Sender: ding-owner@lists.math.uh.edu Message-ID: References: <87brnhdjqc.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084761574 2452 80.91.224.253 (17 May 2004 02:39:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 May 2004 02:39:34 +0000 (UTC) Original-X-From: ding-owner+M5934@lists.math.uh.edu Mon May 17 04:39:25 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPY2H-00071Z-00 for ; Mon, 17 May 2004 04:39:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BPY1r-0007uP-00; Sun, 16 May 2004 21:38:59 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BPVvG-0006rg-00 for ding@lists.math.uh.edu; Sun, 16 May 2004 19:24:02 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BPVvF-0000O3-5h for ding@lists.math.uh.edu; Sun, 16 May 2004 19:24:01 -0500 Original-Received: from quimbies.gnus.org (quimbies.gnus.org [80.91.231.2]) by justine.libertine.org (Postfix) with ESMTP id 6882D3A0205 for ; Sun, 16 May 2004 19:24:00 -0500 (CDT) Original-Received: from larsi by quimbies.gnus.org with local (Exim 3.36 #1 (Debian)) id 1BPVun-0000vG-00 for ; Mon, 17 May 2004 02:23:33 +0200 X-From-Line: nobody Sun May 16 18:59:12 2004 Mail-Copies-To: never X-Now-Playing: Cabaret Voltaire's _The Covenant, the Sword and the Arm of the Lord_: "I Want You" Original-To: ding@gnus.org Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEVPQS/dzrfs5uAqFRC0 lmzFsINreGv///9umBmrAAACMUlEQVR4nGWUzbOiMAzA4/JxBhbc68I812tnuo8zrIGzdRrfFX3I /Xnx39+kBXXdjEibXxOStCmkIlnFch84gdvti1VZZvip0jLL0k1qtrcbg+u8Zrv1o/JaebCIKB+z B7gSkXkCdDGpF/KSk7XiappGmVr0/4jHaWx+eGCdhthyLQCbYQY8ww7Fo4Cen/8ByRj7J4Ao3z/K YBr77QIawM4sgOUOAh2ixc5FxTJ6Vxc2gJAkKju7dQBGBiokU7SVnclsYQHgQgRwwKJ/AqNtQIfE eGULoueP7wA6yhWDnLonC9wDEKZrdRYLO1sMDCyOtG9LfbAFD2cQAHA1iPZRCRkp4AARjQAFrVQj iTZNljKoyXYdAy2g4NyicoBJa11ba7vFgkESln2gdlpNXBtcQJ5mSVyVQfyzNrK1d1e5yRL4s1HR 2zcOmFAAC7syVQJhA6uyFeBcTQ60VTIA6FXVusOCPnOud8shQaDfN23R8QZkvrqchbHxUWmt4s6O ZI0vIv+mC8SoAyYDW4LbQS8xbyJbLPJxB9DzalHFLyBgP4pd6UvwALE456dmNklwyoEJQrdI19NO 18hpBaH68OE2jqip178LwgEw9Ft7SoZgjuZU5SdOas7jvL4De0giaaFXoH6974M4T+fGOb81i8Wn +tQ6aYsZbAanlXw4l3rA3Ed1ShvnR04av1eR/S7AtbzrWukrfvH8658L4LXPvXK5Wq7X5XbwoJzv ADlH6fblyniRvzF3GOTLCj0LAAAAAElFTkSuQmCC User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:8CcOWyWwDXp5GJb1exQ1cRAsgSo= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57395 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57395 Kai Grossjohann writes: > WIBNI M-k or somesuch command would kill a recipient, when in a To/Cc > header? Yes, it would. Hm; I wonder what's the correct approach to take. Should the command delete the address under point, or should it delete up till the next address? For instance: To: "Some, name" , larsi@netfonds.no (Lars), ding@gnus.org If I put point on "name", I could either delete the first address and get To: larsi@netfonds.no (Lars), ding@gnus.org or delete until the next address, which would give us To: "Some, larsi@netfonds.no (Lars), ding@gnus.org which is spectacularly invalid. Hm. I think that to do this correctly, you really have to parse RFC2822 headers, which I really don't want to do. Again. :-) Perhaps something could be done with `mail-header-parse-addresses'? That'll give us a list of addresses, and then we "only" have to match that to the address point in "in", and "then" remove "that" "address" "from" "the" header. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen