\n"; if ( $collapse_folders ) { /* If directed, collapse or uncollapse a folder. */ if (isset($fold)) { setPref($data_dir, $username, 'collapse_folder_' . $fold, SM_BOX_COLLAPSED); } else if (isset($unfold)) { setPref($data_dir, $username, 'collapse_folder_' . $unfold, SM_BOX_UNCOLLAPSED); } } /* Get unseen/total display prefs */ $unseen_type = getPref( $data_dir , $username , 'unseen_type' ); $unseen_notify = getPref( $data_dir , $username , 'unseen_notify' ); if (empty($unseen_type)) { if (!empty($default_unseen_type)) { $unseen_type = $default_unseen_type; } else { $unseen_type = 1; } } if (empty($unseen_notify)) { if (!empty($default_unseen_notify)) { $unseen_notify = $default_unseen_notify; } else { $unseen_notify = 0; } } $boxes = sqimap_mailbox_tree($imapConnection); if (isset($advanced_tree) && $advanced_tree) { echo ''."\n"; } else { ListBoxes($boxes); } echo " |