Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: [FIXED] can't forward marked articles
Date: Wed, 31 Dec 2003 03:10:14 +0100	[thread overview]
Message-ID: <m37k0dpwjd.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <b9yd6aoj5i2.fsf@jpl.org>

Katsumi Yamaoka <yamaoka@jpl.org> writes:

> The reason why I used gnus-extract-address-components rather than
> mail-extract-address-components is because it omits a name too much as
> follows:
>
> (mail-extract-address-components "Foo (Bar) Baz <foo@bar.baz>")
>  => ("Foo Baz" "foo@bar.baz")
> (gnus-extract-address-components "Foo (Bar) Baz <foo@bar.baz>")
>  => ("Foo (Bar) Baz" "foo@bar.baz")

`mail-extract-address-components' is actually correct here; the Gnus
function is incorrect.  (Bar) is a comment in RFC822 syntax, so it
shouldn't be kept as part of the name...

But the function to use is probably neither, but the following:

(mail-header-parse-address "Foo (Bar) Baz <foo@bar.baz>")
=> ("foo@bar.baz" . "Foo Baz")

That function implements the RFC2822 syntax...  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




      reply	other threads:[~2003-12-31  2:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17  6:57 Katsumi Yamaoka
2003-12-31  2:10 ` Lars Magne Ingebrigtsen [this message]

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=m37k0dpwjd.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).