Roundcube Community Forum

 

Folder List Indented

Started by cbfullerx, January 17, 2007, 04:27:42 AM

Previous topic - Next topic

cbfullerx

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

cbfullerx

Is anyone else seeing the folders indented under the inbox?

bugler

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.

cbfullerx

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?

bugler

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.