﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1485355	Wrong classes in Mailbox List	rosali		"file: program/include/main.inc
function: rcmail_render_folder_tree_html

Please use the following code for setting classes of special folders:

    // set special class for Sent, Drafts, Trash and Junk


    if (strtolower($folder['id'])=='inbox')
      $classes[] = 'sent';
    else if ($folder['id']==$CONFIG['sent_mbox'])
      $classes[] = 'sent';
    else if ($folder['id']==$CONFIG['drafts_mbox'])
      $classes[] = 'drafts';
    else if ($folder['id']==$CONFIG['trash_mbox'])
      $classes[] = 'trash';
    else if ($folder['id']==$CONFIG['junk_mbox'])
      $classes[] = 'junk';
    else
      $classes[] = ""mbox_"" . asciiwords($folder_class ? $folder_class : strtolower($folder['id']), true);

F.e. if you have folder ""mail-sent"" associated to be the special folder for Sent Items and a real folder ""sent"" is still present, then both, ""mail-sent"" and ""sent"" are displayed with the the Sent Items icon (see attached screeny).

________________
http://www.roundcubeforum.net/pending-issues/3498-2-sent-folders-2-deleted-items-folders.html"	Bugs	closed	5	0.2-stable	User Interface	0.2-alpha	normal	fixed		
