all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: mail-extract-address-components extract modified full name
Date: Mon, 26 Jul 2004 08:59:10 +0200	[thread overview]
Message-ID: <m3u0vvuudd.fsf@quimbies.gnus.org> (raw)
In-Reply-To: 87wu0sk8aa.wl%yoichi@geiin.org

Yoichi NAKAYAMA <yoichi@geiin.org> writes:

> By the way, I think it would be better that canonicalization of full
> name is done outside and the extracting function just return full name
> as it is.  It is because full-name canonicalization code strongly
> depends on language, culture and custom to describe names(*1), and
> dividing those two features will allow more general use of
> `mail-extract-address-components'.

I think in most instances using `mail-extract-address-components' is
probably the wrong thing.  It doesn't really do RFC(2)822 parsing --
it just takes something that looks pretty much like a mail address
and a name and tries to do something pleasing with it, even if it
isn't in the least valid as a RFC2822 address.

"手塚 治 <foo@bar.com>", for instance, isn't a valid address.  (It
has to be encoded first.)

So I'm not sure that this function should be altered.

On the other hand, if what you want is RFC2822 address parsing, we
have `mail-header-parse-address', which does strict parsing, and
nothing else.

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

  parent reply	other threads:[~2004-07-26  6:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-25  4:41 mail-extract-address-components extract modified full name Yoichi NAKAYAMA
2004-07-26  1:29 ` Richard Stallman
2004-07-26  2:08   ` Katsumi Yamaoka
2004-07-26  3:09     ` Katsumi Yamaoka
2004-07-26  3:39       ` Katsumi Yamaoka
2004-07-26  4:58       ` Miles Bader
2004-07-26  6:59 ` Lars Magne Ingebrigtsen [this message]
2004-07-26 11:09   ` Katsumi Yamaoka
2004-07-27  7:11     ` Katsumi Yamaoka
2004-07-27  9:29       ` Simon Josefsson
2004-07-27 12:39         ` Katsumi Yamaoka
2004-07-27 14:19         ` Stefan Monnier
2004-07-27 16:28           ` Simon Josefsson
2004-07-28  3:33             ` Katsumi Yamaoka
2004-07-29  3:57       ` Yoichi NAKAYAMA

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=m3u0vvuudd.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.