summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-01-03 14:41:13 +0100
committerAleksander Machniak <alec@alec.pl>2015-01-03 14:41:13 +0100
commit10f133bae8499d493a3cc17e10adc7399e6e3b39 (patch)
tree63b3d0048ce72920d331be243c71c8991a3c56dd /program/steps/mail/sendmail.inc
parent7b924535fdb6fd9c4a4767893d0d0c996383df29 (diff)
Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208)
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc6
1 files changed, 4 insertions, 2 deletions
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');
}
}