Roundcube Community Forum

Release Support => Pending Issues => Topic started by: cbfullerx on January 17, 2007, 04:27:42 AM

Title: Folder List Indented
Post by: cbfullerx on January 17, 2007, 04:27:42 AM
Hello,

When prepending "INBOX." to folder references in order to have RC correctly reference the IMAP namespace for private user folders, is there a way to NOT have these folders indented in the folder list?

Sincerely,
Christopher
Title: Re: Folder List Indented
Post by: cbfullerx on January 24, 2007, 05:53:59 PM
Is anyone else seeing the folders indented under the inbox?
Title: Re: Folder List Indented
Post by: bugler on January 26, 2007, 06:36:42 AM
Hi,

i made the following change to func.inc to avoid the indentation:
instead of:
$out .= &quot;\n<ul>\n&quot; . rcmail_render_folder_tree_html($folder['folders'], $special, $mbox_name, $maxlength,
I use:

if (!empty($folder['folders']) && $folder['id'] != 'INBOX')
   $out .= &quot;\n<ul>\n&quot; . rcmail_render_folder_tree_html($folder['folders'], $special, $mbox_name, $maxlength, $nestLevel+1) . "\n";
  else $out .= rcmail_render_folder_tree_html($folder['folders'], $special, $mbox_name, $maxlength, $nestLevel);

It is a little ugly but it does the trick.
Title: Re: Folder List Indented
Post by: cbfullerx on January 27, 2007, 02:54:34 PM
Thank you so much, but does this mean that the indentation is "normal" behavior?
Is this just a result of Courier IMAP on the server?
Or do all installations of RC show the folders indented?
And does this edit need to make its way into the release version?
Title: Re: Folder List Indented
Post by: bugler on January 31, 2007, 03:22:42 AM
Hi,

it has to do with courier but I donÃÂ,Ã,´t really understand what is the reason. All i know is that i didnÃÂ,Ã,´t like it so i found how to change it.

Ed.