Order of UIDs returned by an UID SEARCH

This is a discussion on Order of UIDs returned by an UID SEARCH within the IMAP forums in Other Technologies category; Hi folks, seems that our company IMAP server all of a sudden returns unsorted UIDs on a UID SEARCH query: 3 UID SEARCH FLAGGED * SEARCH 823 494 6 4 3 OK UID SEARCH completed (In this example the UIDs are, by chance, ordered descending. Other results were completely out of order. And I am quite sure that last Friday the results were always ordered ascending.) That made my IMAP client (Gnus v5.10.7) hick up. I have not found anything in the IMAP RFC that requested UIDs returned from an UID SEARCH to be in order. Who is the bad ...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-13-2008, 07:49 AM
jens.schmidt35@arcor.de
Guest
 
Default Order of UIDs returned by an UID SEARCH

Hi folks,

seems that our company IMAP server all of a sudden returns unsorted
UIDs on a UID SEARCH query:

3 UID SEARCH FLAGGED
* SEARCH 823 494 6 4
3 OK UID SEARCH completed

(In this example the UIDs are, by chance, ordered descending. Other
results were completely out of order. And I am quite sure that last
Friday the results were always ordered ascending.)

That made my IMAP client (Gnus v5.10.7) hick up. I have not found
anything in the IMAP RFC that requested UIDs returned from an UID
SEARCH to be in order.

Who is the bad guy here? The IMAP server or the client?

Jens
Reply With Quote
  #2  
Old 05-13-2008, 06:26 PM
Mark Crispin
Guest
 
Default Re: Order of UIDs returned by an UID SEARCH

Although this is certainly strange for a server to do, it is nonetheless
compliant. There are no order guarantees on returned value from an IMAP
server; the only guarantee is that when you get the tagged OK that you
have all the requested data.

On Tue, 13 May 2008, jens.schmidt35@arcor.de posted:
> seems that our company IMAP server all of a sudden returns unsorted
> UIDs on a UID SEARCH query:
>
> 3 UID SEARCH FLAGGED
> * SEARCH 823 494 6 4
> 3 OK UID SEARCH completed
>
> (In this example the UIDs are, by chance, ordered descending. Other
> results were completely out of order. And I am quite sure that last
> Friday the results were always ordered ascending.)
>
> That made my IMAP client (Gnus v5.10.7) hick up. I have not found
> anything in the IMAP RFC that requested UIDs returned from an UID
> SEARCH to be in order.
>
> Who is the bad guy here? The IMAP server or the client?


-- Mark --

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


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:37 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.