From 10f133bae8499d493a3cc17e10adc7399e6e3b39 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 3 Jan 2015 14:41:13 +0100 Subject: [PATCH] Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208) --- CHANGELOG | 1 + program/steps/mail/sendmail.inc | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 878a4d29a..915f3845d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,7 @@ CHANGELOG Roundcube Webmail - Fix some rcube_utils::anytodatetime() corner cases with timezone mismatches (#1490163) - Improve move-to and contact-export button in classic skin (#1490166) - 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.1-beta ---------------- diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 41bcfa6e9..c55e40064 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -564,8 +564,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'); } }