[Tickets #9684] Re: Changing sort direction doesn't work

bugs at horde.org bugs at horde.org
Tue Mar 22 04:06:50 UTC 2011


Ticket URL: http://bugs.horde.org/ticket/9684
  Ticket             | 9684
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Changing sort direction doesn't work
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Assigned
  Priority           | 2. Medium
  Milestone          | 5.0
  Patch              |
  Owners             | Michael Slusarz

Michael Slusarz <slusarz at horde.org> (2011-03-22 04:06) wrote:

>> Obviously sorting in search results won't work.
> At least from a user perspective, not sure how this is obvious?

How so?  Sorting is (or at least should be - that's the point of this  
ticket) disabled in search mailboxes.  This is the way IMP has always  
worked.  So it should be obvious to users, when they can't change the  
sort columns, that sorting is not possible in a mailbox.

Simply put, this is a limitation of IMAP.  IMAP searches by mailbox  
ONLY.  Now that I have written client side sorting in the Socket  
driver, it is possible to do sorting among multiple mailboxes.  But  
this will require a significant alteration of the code in Imap_Client,  
and won't work for all sort options (e.g. sequence/arrival sort).


Sure enough, the commit that removed the sort_limit configuration  
option is what removed the ability to lock a search mailbox from being  

commit d08804fd706e3cea9c3ea9aa9d9901b17dcf6fa9
Author: Michael M Slusarz <slusarz at curecanti.org>
Date:   Fri Mar 5 09:50:31 2010 -0700

     Remove 'sort_limit' configuration option.

     This option was meant to work around slowness/inadequacies of c-client.
     Our Imap_Client library is much faster, so this should not be an issue
     moving forward (if someone really wants to sort their 1,000,000 message
     mailbox by thread, I guess that should be their option).

More information about the bugs mailing list