On Tue, 11 Jun 2002, Pete Maclean wrote:
> I always thought of FETCH 1:* UID as the way to get a list of UIDs --
> probably since that is what most clients I deal with use.  But UID SEARCH
> ALL effectively provides the same information, right?  And does so with
> considerably less information being transferred.

It does so only if you make the assumption that SEARCH returns its values
in ascending order.  IMAP does not stipulate that, so you need to sort the
values to be sure.

You should also make sure that the number of values returned from SEARCH
matches the number of messages.  It will in a compliant server, but...

-- Mark --

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

Reply via email to