[Tickets #1291] NEW: Folder dropdown sorted incorrectly

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Feb 1 10:15:16 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
 Created By | alex at milivojevic.org
 Summary    | Folder dropdown sorted incorrectly
 Queue      | IMP
 Version    | 4.0.1
 State      | Unconfirmed
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


alex at milivojevic.org (2005-02-01 10:15) wrote:

I've first noticed this bug with IMP 2.2, and later confirmed that it is
still present in the current version of IMP, 4.0.1.

On my testing Cyrus IMAPD server, I created following mailbox structure on
the Cyrus IMAPD server for testing shared mailboxes (as printed by cyradm's
listmailbox command):

bureq (\HasNoChildren)
shared.foobar (\HasNoChildren)
user.amilivojevic (\HasChildren)
user.amilivojevic.Drafts (\HasNoChildren)
user.amilivojevic.Sent Items (\HasNoChildren)
user.amilivojevic.Spam (\HasNoChildren)
user.amilivojevic.Templates (\HasNoChildren)
user.foobar (\HasChildren)
user.foobar.shared (\HasNoChildren)
user.foobar.shared-to-all (\HasNoChildren)
user.user2 (\HasChildren)
user.user2.shr (\HasNoChildren)

user.amilivojevic is my INBOX folder.  bureq and shared.* folders are, well,
shared folders.  Some of the other user's folders inside user are also
shared (folders with names ending with shared, shared-to-all, and shr).

The alternate namespace on Cyrus IMAPD is turned off.  In IMP's servers.php,
folders and namespace are set to empty strings (I do want users to see
folders as subfolders of INBOX, since that is the way their "normal" mail
clients are set up).

There were two problems with folder dropdown list.  The first one seems to
be solved in current version (user top-level folder was not displayed).

The second problem is still present.  The sorting is incorrect.  Dropdown
box looks like this:

INBOX
bureq
   Drafts
   Sent Items
   Spam
   Templates
shared.
   foobar
user.
   foobar.
      shared
      shared-to-all
   user2.
      shr

Clearly, this is not correct display.  Subfolders of INBOX are displayed as
if they were subfolders of top-level "bureq" folder.

If I expand the list of folders on the left pane, than I get correct sorting
and indentation.  The bug seems to be present only in the dropdown box that
is located in the upper right corner of the page.

BTW, would it be possible to have non-selectable mailboxes rendered in
different style (in left pane) and non-selectable in dropdown box?  For
example, top-level user and shared, as well as user.foobar and user.user2
are not selectable when I'm connected to Cyrus IMAPD as amilivojevic (for
example, Mozilla Thunderbird renders those folders in grey, not allowing me
to select them).




More information about the bugs mailing list