On Mon, 2003-01-13 at 17:42, Mark Crispin wrote:
> On Mon, 13 Jan 2003, Timo Sirainen wrote:
> > How exactly should SEARCH CC, BCC, FROM and TO match the strings? Spec says
> > "contains the specified string in the envelope structure's CC field", but
> > envelope has it split into multiple fields.
> >
> > UW IMAP seems to match it directly with the non-parsed header field.
> 
> No.  UW imapd matches against a canonicalized form of the appropriate
> field.  That is, against a *parsed* then *unparsed* address list.

Oh, sorry. I just checked that "search to <[EMAIL PROTECTED]>" didn't match for
"To: [EMAIL PROTECTED]". It does seem to match for "To: [EMAIL PROTECTED] (name)"
though.

So, generating the (canonicalized) field from envelope's data and
matching search string against that is fine?

Reply via email to