summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-24 12:24:37 +0200
committerAleksander Machniak <alec@alec.pl>2012-10-24 12:24:37 +0200
commite04e3144407b7a863999d8aeaf6c3a653219359f (patch)
treea384120c20254a15b831980970e51f0800f4f032 /program/steps/mail/compose.inc
parente377ed30d204f6b7315df98443f20c6628cb9673 (diff)
Add option to disable saving sent mail in Sent folder - no_save_sent_messages (#1488686)
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 691eca2db..7ac9a8d39 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1528,6 +1528,11 @@ function rcmail_check_sent_folder($folder, $create=false)
{
global $RCMAIL;
+ // we'll not save the message, so it doesn't matter
+ if ($RCMAIL->config->get('no_save_sent_messages')) {
+ return true;
+ }
+
if ($RCMAIL->storage->folder_exists($folder, true)) {
return true;
}