Author Topic: Folder List Indented  (Read 3585 times)

Offline cbfullerx

  • Jr. Member
  • **
  • Posts: 10
Folder List Indented
« 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

Offline cbfullerx

  • Jr. Member
  • **
  • Posts: 10
Re: Folder List Indented
« Reply #1 on: January 24, 2007, 05:53:59 PM »
Is anyone else seeing the folders indented under the inbox?

Offline bugler

  • Jr. Member
  • **
  • Posts: 54
Re: Folder List Indented
« Reply #2 on: January 26, 2007, 06:36:42 AM »
Hi,

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

Code: [Select]
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.

Offline cbfullerx

  • Jr. Member
  • **
  • Posts: 10
Re: Folder List Indented
« Reply #3 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?

Offline bugler

  • Jr. Member
  • **
  • Posts: 54
Re: Folder List Indented
« Reply #4 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.