cmcnulty
2013-11-04 c99901fd16d18b27af716f4ec7a4e66df6208ac4
program/steps/mail/func.inc
@@ -260,6 +260,8 @@
    array_unshift($a_show_cols, 'subject');
  if (!in_array('threads', $a_show_cols))
    array_unshift($a_show_cols, 'threads');
  if (!in_array('focus', $a_show_cols))
    array_unshift($a_show_cols, 'focus');
  $_SESSION['skin_path'] = $CONFIG['skin_path'];
@@ -309,6 +311,8 @@
    array_unshift($a_show_cols, 'subject');
  if (!in_array('threads', $a_show_cols))
    array_unshift($a_show_cols, 'threads');
  if (!in_array('focus', $a_show_cols))
    array_unshift($a_show_cols, 'focus');
  $_SESSION['list_attrib']['columns'] = $a_show_cols;
@@ -336,7 +340,7 @@
    return;
  // remove 'threads', 'attachment', 'flag', 'status' columns, we don't need them here
  foreach (array('threads', 'attachment', 'flag', 'status', 'priority') as $col) {
  foreach (array('threads', 'attachment', 'flag', 'status', 'priority', 'focus') as $col) {
    if (($key = array_search($col, $a_show_cols)) !== FALSE)
      unset($a_show_cols[$key]);
  }
@@ -464,6 +468,7 @@
      case 'attachment':
      case 'priority':
      case 'status':
     case 'focus':
        $col_name = '<span class="' . $col .'">&nbsp;</span>';
        break;
      case 'threads':