$oTemplate->assign('icon_theme_path', $icon_theme_path);
$oTemplate->assign('use_special_folder_color', $use_special_folder_color);
$oTemplate->assign('message_recycling_enabled', $move_to_trash);
-$oTemplate->assign('trash_folder_name', $trash_folder);
if (isset($advanced_tree) && $advanced_tree) {
$oTemplate->display('left_main_advanced.tpl');
* @author Steve Brown
* @since 1.5.2
*/
-function getMessageCount ($boxes, $type='total')
-{
+function getMessageCount ($boxes, $type='total') {
// The Trash folder isn't counted...
if ($boxes->mailboxname_full == $GLOBALS['trash_folder'])
return 0;
* @author Steve Brown
* @since 1.5.2
*/
-function getBoxStructure ($boxes)
-{
+function getBoxStructure ($boxes) {
global $data_dir, $username, $icon_theme_path;
// Stop condition
$box['IsRoot'] = isset($boxes->is_root) && $boxes->is_root;
$box['IsNoSelect'] = isset($boxes->is_noselect) && $boxes->is_noselect;
+ $box['IsInbox'] = isset($boxes->is_inbox) && $boxes->is_inbox;
+ $box['IsSent'] = isset($boxes->is_sent) && $boxes->is_sent;
+ $box['IsTrash'] = isset($boxes->is_trash) && $boxes->is_trash;
+ $box['IsDraft'] = isset($boxes->is_draft) && $boxes->is_draft;
+ $box['IsNoInferiors'] = isset($boxes->is_noinferiors) && $boxes->is_noinferiors;
+
$collapse = getPref($data_dir, $username, 'collapse_folder_' . $mailbox);
$collapse = ($collapse == '' ? SM_BOX_UNCOLLAPSED : $collapse);
$collapse = (int)$collapse == SM_BOX_COLLAPSED;