Changeset 4906eb8 in github


Ignore:
Timestamp:
Sep 11, 2009 8:11:16 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e7b283b
Parents:
2b82072
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/func.inc

    rb48d9bf r4906eb8  
    153153 
    154154  $mbox = $IMAP->get_mailbox_name(); 
    155    
    156   // show 'to' instead of from in sent messages 
    157   if (($mbox==$CONFIG['sent_mbox'] || $mbox==$CONFIG['drafts_mbox']) && ($f = array_search('from', $a_show_cols)) 
    158       && !array_search('to', $a_show_cols)) 
     155  $delim = $IMAP->get_hierarchy_delimiter(); 
     156 
     157  // show 'to' instead of 'from' in sent/draft messages 
     158  if ((strpos($mbox.$delim, $CONFIG['sent_mbox'].$delim)===0 || strpos($mbox.$delim, $CONFIG['drafts_mbox'].$delim)===0) 
     159      && ($f = array_search('from', $a_show_cols)) && !array_search('to', $a_show_cols)) 
    159160    $a_show_cols[$f] = 'to'; 
    160161   
     
    393394 
    394395  $mbox = $IMAP->get_mailbox_name(); 
    395  
    396   // show 'to' instead of from in sent messages 
    397   if (($mbox == $CONFIG['sent_mbox'] || $mbox == $CONFIG['drafts_mbox']) 
     396  $delim = $IMAP->get_hierarchy_delimiter(); 
     397   
     398  // show 'to' instead of 'from' in sent/draft messages 
     399  if ((strpos($mbox.$delim, $CONFIG['sent_mbox'].$delim)===0 || strpos($mbox.$delim, $CONFIG['drafts_mbox'].$delim)===0) 
    398400      && (($f = array_search('from', $a_show_cols)) !== false) && array_search('to', $a_show_cols) === false) 
    399401    $a_show_cols[$f] = 'to'; 
Note: See TracChangeset for help on using the changeset viewer.