diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-09 08:38:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-09 08:38:20 +0000 |
| commit | 44532e7b5ffc1c670db3b214c4d665f595d6410a (patch) | |
| tree | 2613b7aa0d96346ddc3f1131d1f5720d06a57922 /roundcubemail/program | |
| parent | 3487c89ca3d09eb548edd9c52c0f727d9fc18c42 (diff) | |
Let plugins modify the Sent folder when composing (#1486548)
git-svn-id: https://svn.roundcube.net/trunk@3477 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index bf245038a..658f59037 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -55,9 +55,12 @@ if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != get_input_v } } + // select folder where to save the sent message + $_SESSION['compose']['param']['sent_mbox'] = $RCMAIL->config->get('sent_mbox'); + // pipe compose parameters thru plugins $plugin = $RCMAIL->plugins->exec_hook('message_compose', $_SESSION['compose']); - $_SESSION['compose']['param'] = array_merge($_SESSION['compose']['param'], $plugin['param']); + $_SESSION['compose']['param'] = array_merge($_SESSION['compose']['param'], $plugin['param']); // add attachments listed by message_compose hook if (is_array($plugin['attachments'])) { @@ -1061,7 +1064,7 @@ function rcmail_store_target_selection($attrib) { $attrib['name'] = '_store_target'; $select = rcmail_mailbox_select(array_merge($attrib, array('noselection' => '- '.rcube_label('dontsave').' -'))); - return $select->show(rcmail::get_instance()->config->get('sent_mbox'), $attrib); + return $select->show($_SESSION['compose']['param']['sent_mbox'], $attrib); } |
