'.$box['MailboxName'].': '.dump_array($box).'
'; $pre = ''; $end = ''; $indent = str_repeat('  ',$indent_factor); // Get unseeen/total message info if needed $unseen_str = ''; if ($settings['unreadNotificationEnabled']) { // We only display the unread count if we on the Inbox or we are told // to display it on all folders. if ( $settings['unreadNotificationAllFolders'] || (!$settings['unreadNotificationAllFolders'] && strtolower($box['MailboxFullName'])=='inbox') ) { $unseen_str = $settings['unreadNotificationCummulative'] ? $box['CummulativeUnreadCount'] : $box['UnreadCount']; // Add the total messages if desired if ($settings['unreadNotificationDisplayTotal']) { $unseen_str .= '/' . ($settings['unreadNotificationCummulative'] ? $box['CummulativeMessageCount'] : $box['MessageCount']); } $unseen_str = '' . $unseen_str . ''; } } /* * If the box has any children, and collapsable folders have been enabled * we need to output the expand/collapse link. */ if (sizeof($box['ChildBoxes'])>0 && $settings['collapsableFoldersEnabled']) { $link = $indent . '' . '>' . $box['CollapseLink']['Icon'] . ''; $pre .= $link; } else { $pre .= $indent . '  '; } /* * The Trash folder should only be displayed if message recycling has * been enabled, i.e. when deleted is a message moved to the trash or * deleted forever? */ $view_link = ''; if ($settings['messageRecyclingEnabled'] && $box['MailboxFullName'] == $settings['trashFolderName']) { $pre .= $view_link; // Boxes with unread messages should be emphasized if ($box['UnreadCount'] > 0) { $pre .= ''; $end .= ''; } $end .= ''; // Print unread info if ($box['UnreadCount'] > 0) { if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } $end .= "\n" . '  ['. _("Purge").']' . ''; } } else { // Add a few other things for all other folders... if (!$box['IsNoSelect']) { $pre .= $view_link; // Boxes with unread messages should be emphasized if ($box['UnreadCount'] > 0) { $pre .= ''; $end .= ''; } $end .= ''; } // Display unread info... if (!empty($unseen_str)) { $end .= ' ('.$unseen_str.')'; } } $span = ''; $spanend = ''; if ($settings['useSpecialFolderColor'] && $box['IsSpecial']) { $span = ''; $spanend = ''; } elseif ( $box['IsNoSelect'] ) { $span = ''; $spanend = ''; } // let plugins fiddle with end of line $end .= concat_hook_function('left_main_after_each_folder', array(isset($numMessages) ? $numMessages : '', $box['MailboxFullName'], $settings['imapConnection'])); $end .= ''; $out = ''; if (!$box['IsRoot']) { $out = $span . $pre . str_replace( array(' ','<','>'), array(' ','<','>'), $box['MailboxName']) . $end . $spanend . '
' . "\n"; $indent_factor++; } if (!$box['IsCollapsed'] || $box['IsRoot']) { for ($i = 0; $i

[]