Re: history of using a comment for display-name?

Keith Moore <moore@cs.utk.edu> Mon, 12 March 2001 16:48 UTC

Received: from cs.utk.edu (cs.utk.edu [160.36.56.56]) by ietf.org (8.9.1a/8.9.1a) with SMTP id LAA13752 for <drums-archive@odin.ietf.org>; Mon, 12 Mar 2001 11:48:23 -0500 (EST)
Received: from localhost (daemon@localhost) by cs.utk.edu with SMTP (cf v2.9s-UTK) id LAA29828; Mon, 12 Mar 2001 11:39:18 -0500 (EST)
Received: by cs.utk.edu (bulk_mailer v1.13); Mon, 12 Mar 2001 11:39:17 -0500
Received: by cs.utk.edu (cf v2.9s-UTK) id LAA29811; Mon, 12 Mar 2001 11:39:17 -0500 (EST)
Received: from astro.cs.utk.edu (marvin@localhost) by cs.utk.edu with ESMTP (cf v2.9s-UTK) id LAA29758; Mon, 12 Mar 2001 11:39:13 -0500 (EST)
Received: from astro.cs.utk.edu (160.36.58.43 -> astro.cs.utk.edu) by cs.utk.edu (smtpshim v1.0); Mon, 12 Mar 2001 11:39:13 -0500
Received: from astro.cs.utk.edu (LOCALHOST [127.0.0.1]) by astro.cs.utk.edu (cf 8.9.3) with ESMTP id LAA13569; Mon, 12 Mar 2001 11:38:59 -0500 (EST)
Message-Id: <200103121638.LAA13569@astro.cs.utk.edu>
X-URI: http://www.cs.utk.edu/~moore/
From: Keith Moore <moore@cs.utk.edu>
To: Maynard Kang <maynard@pobox.org.sg>
cc: Keith Moore <moore@cs.utk.edu>, drums@cs.utk.edu
Subject: Re: history of using a comment for display-name?
In-reply-to: Your message of "Mon, 12 Mar 2001 08:23:05 PST." <00b201c0ab10$f50006e0$0200000a@maynardibm>
Date: Mon, 12 Mar 2001 11:38:59 -0500
Sender: moore@cs.utk.edu
List-Unsubscribe: <mailto:drums-request@cs.utk.edu?Subject=unsubscribe>

> I guess as a developer of e-mail software I find it mildly irritating that
> I've always had to write code to support both the "phrase route-addr" and
> "addr-spec (comments)" formats in e-mail headers. You can imagine the
> problem getting worse when dealing with non-ASCII in headers.. 

I have had the same irritation for mail software that I write
(even though it's not for public consumption, at least not yet)
I try to find a name in either the phrase or a following comment, 
and naturally I decode encoded-words.  I also try to deal with
extra quotes, untagged 8-bit characters (guessing whether they're
utf8, iso-2022-*, or something else), and phrases which are
entirely redundant with the address.

(so I translate each of the following:

"foo" <foo@domain> 
"'foo'" <foo@domain>
"foo@domain" <foo@domain>
"'foo@domain'" <foo@domain>

to simply 

<foo@domain>

it's a major pain, but the resulting display is a lot easier to read)

Most mail client these days seem to generate phrase rather than comment, 
but this doesn't help someone writing a new mail reader.  Mail readers
may have to deal with messages that are decades old, so they end up 
needing to understand old conventions long after they are no longer 
generated.  

Keith