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

Re: [MORG] I-D Action:draft-ietf-morg-sortdisplay-01.txt



Timo Sirainen writes:
 o If the mailbox contains an [RFC5322] display-name, replace each
instance of [RFC5322] CFWS in the display-name with a single space, trim leading and trailing whitespace, and decode any quoted-strings and [RFC2047] encoded-words. If the resulting string is not the empty string, use it as the sort value for the mailbox.

Is the ordering right? Maybe it should be more like:

1. Decode RFC 2047 encoded-words
2. Decode quoted-strings
3. Trim away extra whitespace

I don't think it really matters. In real life you want to do a little of both, if you care about catering to the varieties of broken 2047 encoding that float around the net. I'd prefer wording that handwaves around all that.

FWIW, I also trim away some other things, which I wouldn't like to add to the document, e.g. outlookisms and phish vomit:

    To: "'tss at iki.fi'" <tss at iki.fi>
    From: "service at paypal.com" <fr432efa934 at hotmail.com>

Arnt