MBOX-Line: From tss at iki.fi  Mon Jan  9 16:37:11 2012
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:47 2018
Subject: [Imap-protocol] "normalized message ID" in RFC 5256?
In-Reply-To: <67105.1326153749@parc.com>
References: <67105.1326153749@parc.com>
Message-ID: <F1C0C46B-B5F1-4719-9136-8AA525E18A07@iki.fi>

On 10.1.2012, at 2.02, Bill Janssen wrote:

> I'm re-implementing my threading code, and I had a question about the
> language about "normalized message IDs" found in RFC 5256.  That seems
> to refer to section 3.6.4 of RFC 2822: the implication is that the
> DQUOTEs in "no-fold-quote" and the "[" and "]" brackets in
> "no-fold-literal" should be removed before comparing message-ids.

The way I do it is parse it through the RFC (2)822 parser. So it strips out all comments and other extra whitespace and such, mostly because of obs-id-left / obs-id-right. I don't think you should be stripping out brackets.

Hmm. Actually, looks like I'm not handling no-fold-quote at all.. Wonder why I forgot that, even though it's in the comments just above the code..


