[JDEV] request for ideas: RFC822 to JID mapping

Hiroaki Nakamura hnakamur at v003.vaio.ne.jp
Sat Jul 27 22:39:08 CDT 2002


Hi Matthias!

Matthias Wimmer wrote:

> One big problem I havn't solved yet is how to map JIDs to RFC822 
> conformand addresses if they contain characters that are not valid in 
> the user part of a mail address. Has anybody a good idea how to deal 
> with that? Especially I'd like to get comments from people that use 
> languages that are not written with latin letters.
> Sure I could use something like quoted printable for that, but the 
> resulting addresses wouldn't be very handy.

RFC822 is obsoleted by RFC2822.
http://www.ietf.org/rfc/rfc2822.txt?number=2822

In "3.4. Address Specification", it says:

mailbox         =       name-addr / addr-spec
name-addr       =       [display-name] angle-addr
angle-addr      =       [CFWS] "<" addr-spec ">" [CFWS] / obs-angle-addr
display-name    =       phrase

In Japan, as far as I can see these days, we don't use non-latin letters
in mail addresses. First, we never use non-latin characters in addr-spec.
Second, A display-name is either an ascii only phrase or an phrase
with some or all words encoded by RFC1522 using iso-2022-jp.
http://www.ietf.org/rfc/rfc1522.txt?number=1522

For example, my mail address is one of the following:
hnakamur at v003.vaio.ne.jp
"Hiroaki Nakamura" <hnakamur at v003.vaio.ne.jp>
=?iso-2022-jp?B?XCIbJEJDZkI8GyhCIBskQjkwNTEbKEJcIg==?= <hnakamur at v003.vaio.ne.jp>

Actually I have never seen only some words are encoded like an example
in RFC1522:
CC: =?ISO-8859-1?Q?Andr=E9_?= Pirard <PIRARD at vm1.ulg.ac.be>
When we use RFC1522 encoding, usually all words are encoded as a
whole.

--
)Hiroaki Nakamura) hnakamur at v003.vaio.ne.jp






More information about the JDev mailing list