unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* mail-extract-address-components extract modified full name
@ 2004-07-25  4:41 Yoichi NAKAYAMA
  2004-07-26  1:29 ` Richard Stallman
  2004-07-26  6:59 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 15+ messages in thread
From: Yoichi NAKAYAMA @ 2004-07-25  4:41 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

Description of `mail-extract-address-components' says
 "extract full name and canonical address"
But it actually returns modified (canonicalized) full name like:

 (mail-extract-address-components "\"Nakayama, Y\" <yoichi@geiin.org>")
 => ("Y. Nakayama" "yoichi@geiin.org")
 (mail-extract-address-components "Y Nakayama <yoichi@geiin.org>")
 => ("Y. Nakayama" "yoichi@geiin.org")

So the description would be "extract canonical full name...".

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'.

(*1) An example can be found at the next part of this message.
Picture version with note is at http://yoichi.geiin.org/tmp/mail-extr.png

Best regards,
-- 
Yoichi NAKAYAMA

[-- Attachment #2: Type: text/plain, Size: 147 bytes --]

;; Note that
;; (mail-extract-address-components "手塚 治 <foo@bar.com>")
;; => ("手塚 治." "foo@bar.com")
;; seems funny.

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-07-29  3:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).