There is clearly something wrong with a client specifying an invalid message sequence number in a fetch (since the client knows at all times the number of messages in a mailbox), but that does not necessarily hold true for search (although the reason for this currently escapes me).
3501 section 5.5, UID SEARCH. Makes me think, though. Consider this conversation:
C: a uid search 1:* S: * search 1 2 3 4 S: a ok C: b fetch 2,4 body[header.fields (from subject)] S: 2 fetch ... S: 4 fetch ... S: b ok C: c uid search (or 1 3) from larryo S: 2 expunge S: * search 1 S: c ok
Is this even legal? I don't see anything to forbid it. But I also don't see which message set is searched: uids 1 and 3 or uids 1 and 4?
--Arnt
