Changeset 814905c in github for program/steps/mail/compose.inc


Ignore:
Timestamp:
Apr 9, 2010 4:38:20 AM (3 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
bc49601
Parents:
53d6261
Message:

Let plugins modify the Sent folder when composing (#1486548)

File:
1 edited

Legend:

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

    r7a48e55 r814905c  
    5656  } 
    5757   
     58  // select folder where to save the sent message 
     59  $_SESSION['compose']['param']['sent_mbox'] = $RCMAIL->config->get('sent_mbox'); 
     60   
    5861  // pipe compose parameters thru plugins 
    5962  $plugin = $RCMAIL->plugins->exec_hook('message_compose', $_SESSION['compose']); 
    60   $_SESSION['compose']['param'] = array_merge($_SESSION['compose']['param'], $plugin['param']);    
     63  $_SESSION['compose']['param'] = array_merge($_SESSION['compose']['param'], $plugin['param']); 
    6164 
    6265  // add attachments listed by message_compose hook 
     
    10621065  $attrib['name'] = '_store_target'; 
    10631066  $select = rcmail_mailbox_select(array_merge($attrib, array('noselection' => '- '.rcube_label('dontsave').' -'))); 
    1064   return $select->show(rcmail::get_instance()->config->get('sent_mbox'), $attrib); 
     1067  return $select->show($_SESSION['compose']['param']['sent_mbox'], $attrib); 
    10651068} 
    10661069 
Note: See TracChangeset for help on using the changeset viewer.