Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: Kill recipients in To/Cc headers
Date: Sun, 16 May 2004 18:59:12 +0200	[thread overview]
Message-ID: <m3brknzyti.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <87brnhdjqc.fsf@emptyhost.emptydomain.de>

Kai Grossjohann <kai@emptydomain.de> 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>, 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



  parent reply	other threads:[~2004-05-16 16:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01  9:01 Kai Grossjohann
2004-03-01  9:12 ` Jonas Steverud
2004-03-01 20:01 ` Karl Pflästerer
2004-05-16 16:59 ` Lars Magne Ingebrigtsen [this message]
2004-05-17  7:45   ` Daniel Pittman
2004-05-17 11:15     ` Kai Grossjohann
2004-05-17 11:54     ` Lars Magne Ingebrigtsen
2004-05-17 21:47       ` Danny Siu
2004-05-17 22:05         ` Lars Magne Ingebrigtsen
2004-05-17  0:34 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3brknzyti.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).