diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-23 10:01:32 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-23 10:01:32 +0000 |
| commit | 38987511c153d054441fca8d0a4c01b8c24936dd (patch) | |
| tree | 57fb99b192fc9e5ed511ea26705cf31ee6c1d6c2 | |
| parent | 96b94c9735ff17eb9378029a5606807652185794 (diff) | |
- Allow to override identity when composing a message (#1486466)
git-svn-id: https://svn.roundcube.net/trunk@3403 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 3c489ef23..d886801a3 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -377,7 +377,7 @@ function rcmail_compose_header_from($attrib) if ($compose_mode == RCUBE_COMPOSE_REPLY && is_array($MESSAGE->compose_from)) $MESSAGE->compose_from[] = $sql_arr['email']; - if (empty($_POST['_from'])) + if (empty($_POST['_from']) && empty($_SESSION['compose']['param']['from'])) { // set draft's identity if ($compose_mode == RCUBE_COMPOSE_DRAFT && strstr($MESSAGE->headers->from, $sql_arr['email'])) @@ -391,6 +391,8 @@ function rcmail_compose_header_from($attrib) // overwrite identity selection with post parameter if (!empty($_POST['_from'])) $from_id = get_input_value('_from', RCUBE_INPUT_POST); + else if (!empty($_SESSION['compose']['param']['from'])) + $from_id = $_SESSION['compose']['param']['from']; $out = $select_from->show($from_id); |
