[Dovecot] search throwing "Sequence out of range"
Mulberry client-side message filtering can be persuaded to search for a
nonexistent message ...
<tag> UID SEARCH UNSEEN UNDELETED UNDRAFT 12 (OR FROM "Cron Daemon
On Wed, 2003-07-09 at 00:00, Stuart Henderson wrote:
Mulberry client-side message filtering can be persuaded to search for a nonexistent message ...
<tag> NO Sequence out of range: 12
I *think* the correct behaviour here is to return a null set of search results and avoid the error message in the client. i.e.
I think Dovecot's behaviour is correct enough here, but I'll ask in imap-list just in case since other servers do seem to ignore invalid message sets in SEARCH. That may however be just because lack of error checking.
Certainly this is how other servers seem to work, and my understanding of the next paragraph from IMAP4REV1 RFC seems to backs this up (though the wording in the RFC isn't 100% clear to me)
"Message set ranges are permitted; however, there is no guarantee that unique identifiers be contiguous. A non-existent unique identifier within a message set range is ignored without any error message generated."
That talks about UIDs. That search command was searching for message sequence 12, not UID 12.
On Wed, 2003-07-09 at 00:00, Stuart Henderson wrote:
Mulberry client-side message filtering can be persuaded to search for a nonexistent message ...
<tag> UID SEARCH UNSEEN UNDELETED UNDRAFT 12 (OR FROM "Cron Daemon sthen@eeyore.37.spacehopper.org" SUBJECT "Cron sthen@wide /home/sthen/pingme")
Dovecot 0.99.10 returns this ...
<tag> NO Sequence out of range: 12
OK, this is Mulberry bug, should probably be reported to them. Actually even without this error message it might work incorrectly. Suppose there was two new messages, then this SEARCH would match the second new one instead of the one that got just expunged.
Or I don't know if it matters, if it would be applying those same filters to that second message in any case next..
participants (2)
-
Stuart Henderson
-
Timo Sirainen