[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail-extract-address-components extract modified full name

From: Yoichi NAKAYAMA
Subject: mail-extract-address-components extract modified full name
Date: Sun, 25 Jul 2004 13:41:49 +0900
User-agent: Wanderlust/2.11.30 (Wonderwall) EMIKO/1.14.1 (Choanoflagellata) LIMIT/1.14.8 (土師の里) APEL/10.6 Emacs/21.3.50 (i686-pc-linux-gnu) MULE/5.0 (賢木)

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\" <address@hidden>")
 => ("Y. Nakayama" "address@hidden")
 (mail-extract-address-components "Y Nakayama <address@hidden>")
 => ("Y. Nakayama" "address@hidden")

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

(*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,
;; Note that
;; (mail-extract-address-components "手塚 治 <address@hidden>")
;; => ("手塚 治." "address@hidden")
;; seems funny.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]