MBOX-Line: From MRC at CAC.Washington.EDU  Sun Apr 24 11:01:51 2005
To: imap-protocol@u.washington.edu
From: Mark Crispin <MRC@CAC.Washington.EDU>
Date: Fri Jun  8 12:34:35 2018
Subject: [Imap-protocol] Searching for a given address
In-Reply-To: <DG7x5kcoweu1yy0IHfKQqg.md5@[10.0.0.123]>
References: <DG7x5kcoweu1yy0IHfKQqg.md5@[10.0.0.123]>
Message-ID: <Pine.WNT.4.63.0504241056570.1360@Shimo-Tomobiki.panda.com>

Searches were always intended to be more or less fuzzy; that is, searching 
for "weber" as opposed to "weber@example.com".

You are right that some servers, such as UW imapd, canonicalize search 
addresses so that a search for "<weber@example.com>" will do what you 
want.  But the specification does not require this.

If you really care for an exact match, you will have to get the envelopes 
of the messages that were searched and exclude those that do not match 
your criteria.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

