diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-01-03 14:41:13 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-01-03 14:42:11 +0100 |
commit | ed32835aba6acd8445dd067c3ed8c96cb1092d25 (patch) | |
tree | 7597bdc7f52350085ca0593e96766f0fd073c7f0 | |
parent | cbacfb30a936b3e3aef29442c0d4e8a30e09fd6f (diff) |
Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/steps/mail/sendmail.inc | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -3,6 +3,7 @@ CHANGELOG Roundcube Webmail - Fix bug where some valid text in a message was handled as uuencoded attachment - Fix wrong icon for download button in classic skin +- Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208) RELEASE 1.0.4 ------------- diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index d5f1a7baf..34801d879 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -541,8 +541,10 @@ if ($savedraft) { $store_target = $drafts_mbox; } else if (!$RCMAIL->config->get('no_save_sent_messages')) { - $store_target = rcube_utils::get_input_value('_store_target', rcube_utils::INPUT_POST); - if (!strlen($store_target)) { + if (isset($_POST['_store_target'])) { + $store_target = rcube_utils::get_input_value('_store_target', rcube_utils::INPUT_POST); + } + else { $store_target = $RCMAIL->config->get('sent_mbox'); } } |