yllar
2006-12-16 77c28206a14b5bee3f3091f10cffd531bce5649c
program/steps/mail/func.inc
@@ -513,8 +513,8 @@
  $a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
  // show 'to' instead of from in sent messages
  if (strtolower($IMAP->get_mailbox_name())=='sent' && ($f = array_search('from', $a_show_cols))
      && !array_search('to', $a_show_cols))
  if (($IMAP->get_mailbox_name()==$CONFIG['sent_mbox'] || $IMAP->get_mailbox_name()==$CONFIG['drafts_mbox'])
      && ($f = array_search('from', $a_show_cols)) && !array_search('to', $a_show_cols))
    $a_show_cols[$f] = 'to';
  $commands .= sprintf("this.set_message_coltypes(%s);\n", array2js($a_show_cols));