[Tickets #1291] Folder dropdown sorted incorrectly

bugs at bugs.horde.org bugs at bugs.horde.org
Fri Feb 4 08:48:19 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1291
-----------------------------------------------------------------------
 Ticket     | 1291
 Updated By | alex at milivojevic.org
 Summary    | Folder dropdown sorted incorrectly
 Queue      | IMP
 Version    | 4.0.1
 State      | Feedback
 Priority   | 1. Low
 Type       | Bug
 Owners     | Michael Slusarz
-----------------------------------------------------------------------


alex at milivojevic.org (2005-02-04 08:48) wrote:

I agree with 2 (although, not sure if RFC says that INBOX is always
uppercase, if it is the case, than string comparation should be case
sensitive for both this check and the previously existing check for INBOX
folder itself at the beggining of fucntion).

As for 1 (speed improvement), it is dependent on IMAP server used, and the
way user organized his folders.  On Cyrus with alternate_namespace turned
off, I clearly see the benefit and performance improvement.  On everything
else, hm, it's doubtfull.  If alternate_namespace is turned on, and user has
a flat folder structure (for example, only top-level folders: INBOX,
Folder1, Folder2, and so on), it will be actually slower.  In that case you
only introduced one additional if($this->_sortinbox && ($i == 0)) check,
case that is already checked at the beggining of function.

Anyhow, your patch worked for me.  If you commit it, maybe replace [$i] with
[0].  $i is always zero in that part of code (because of "if" statement). 
Or using full folder name instead of array component (like in my patch, is
there case insensitive version of strpos?).




More information about the bugs mailing list