Utility file for reading messages.
[squirrelmail.git] / templates / default / left_main.tpl
index 9fb938ab2fbcebd1500a8cde7e0f88dc1b209d11..bbe6b1914c93b3461e0df6bad4984ada3f697102 100644 (file)
@@ -8,12 +8,10 @@
  *      $clock           - formatted string containing last refresh
  *      $settings        - Array containing user perferences needed by this
  *                         template.  Indexes are as follows:
- *          $settings['imapConnection'] - IMAP connection handle.  Needed to
- *                         allow plugins to read the mailbox.
  *          $settings['iconThemePath'] - Path to the desired icon theme.  If
  *                         the user has disabled icons, this will be NULL.
- *          $settings['templateDirectory'] - contains the path to the current
- *                         template directory.  This may be needed by third
+ *          $settings['templateID'] - contains the ID of the current
+ *                         template set.  This may be needed by third
  *                         party packages that don't integrate easily.
  *          $settings['unreadNotificationEnabled'] - Boolean TRUE if the user
  *                         wants to see unread message count on mailboxes
@@ -188,7 +186,7 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
         $end .= '</a>';
 
         // Print unread info
-        if ($box['MessageCount'] > 0) {
+        if ($box['MessageCount'] > 0 || count($box['ChildBoxes'])) {
             if (!empty($unseen_str)) {
                 $end .= '&nbsp;<small>('.$unseen_str.')</small>';
             }
@@ -225,10 +223,17 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) {
         $spanend = '</span>';
     }
 
+/********
+ * Pulling imapConnection due to segfaults that cannot be tracked down.  Best
+ * we can determine,its some combination of this var and >= 4 plugins enabled.
+ * No further clue from anyone.
+ ********
+    
     // 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 .= '</span>';