Opened 4 years ago

Closed 3 weeks ago

#1486288 closed Feature Requests (wontfix)

List all folder recursively instead using the * wildcard when issuing an imap LIST command

Reported by: egallego Owned by:
Priority: 3 Milestone: later
Component: IMAP connection Version:
Severity: normal Keywords: imap, folder, list
Cc:

Description (last modified by alec)

Doing a LIST "" "*" is discouraged as it could return millions of folders. Instead, IMAP implementations are expected to issue a LIST "" "%" to list the first level of the hierarchy and then proceed recursively when the user request more folder.

This is difficult to achieve in roundcube without using AJAX in the folder view and switching it to a tree.

See:


Change History (6)

comment:1 Changed 4 years ago by egallego

A sketch of the implementation would be:

  • [PHP] Define a _get_subfolders(folder) that returns the subfolders of folder and whether they have children.
  • [PHP] Format that as a tree (list) and mark expansible nodes folders with children.
  • [jquery folderview]: Setup click of expansible items to call _get_subfolders and replace innerHtml with it.

comment:2 Changed 4 years ago by egallego

IMHO, I'd target this to RC 1.0 release. My reasoning is that for instance RC may not work with UW-IMAP, which reponds to LIST "" "*" with all the files in $HOME by default.

I think fully supporting this IMAP server may be a 1.0 release goal.

comment:4 Changed 2 years ago by thomasb

  • Component changed from Core functionality to IMAP connection

The LIST "" "*" command is only used to list folders in the folder manager. Otherwise subscribed folders are listed. Loading a big list of folders in that step seems OK to me since it's not a common action. However, maybe only listing the advertised NAMESPACES as suggested in #1486796 would help here.

comment:5 Changed 3 weeks ago by alec

  • Description modified (diff)

Why we should care about outdated and unmaintained UW-IMAP server? We by default display all levels of hierarchy which means implementing this will not really help here.

comment:6 Changed 3 weeks ago by alec

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.