MBOX-Line: From mrc at CAC.Washington.EDU  Fri Jul  1 16:25:58 2005
To: imap-protocol@u.washington.edu
From: Mark Crispin <mrc@CAC.Washington.EDU>
Date: Fri Jun  8 12:34:36 2018
Subject: [Imap-protocol] SEARCH messagesets
In-Reply-To: <c23fd75e01463e3eb2e9f93408c5b888@iki.fi>
References: <c23fd75e01463e3eb2e9f93408c5b888@iki.fi>
Message-ID: <Pine.OSX.4.63.0507011621330.17505@pangtzu.panda.com>

On Sat, 2 Jul 2005, Timo Sirainen wrote:
> If mailbox has 10 messages and client does SEARCH 1:11, is it valid to 
> give a BAD reply as most servers do if the same is done with FETCH, or 
> should it just be treated as 1:10? Thoughts?

In my opinion, either is valid.

It is an error to reference a non-existent sequence number, but SEARCH 
criteria are arguably not referencing the sequence number but merely 
"searching".

-- Mark --

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

