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

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



> > 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
> 
> Or is the whitespace significant in encoded-words and quoted-strings?

Well, you have to strip comments (the 'C' part of "CFWS") before handling
encoded-words and quoted-strings.  Whether to also normalize whitespace
after doing the encoded-word and quoted-string decoding is a separate
question.  Both encoded-words and quoted-strings do indeed consider
whitespace to be significant, but we have the right to override that when
calculating the sort value if we so desire.

> > o  Otherwise, the message's sort value is the DISPLAY sort value of
> >       the first mailbox in its From header.
> 
> Minor thing: Everywhere else it says "[RFC5322] mailbox", except here.

Well, here and the previous paragraph that you quoted.  I tried to 
mention the RFC when referencing part of its ABNF just once per section/
subsection/list.  But I have no problem in using the footnote in each
case...