diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-24 12:24:37 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-24 12:24:37 +0200 |
commit | e04e3144407b7a863999d8aeaf6c3a653219359f (patch) | |
tree | a384120c20254a15b831980970e51f0800f4f032 /program/steps/mail/compose.inc | |
parent | e377ed30d204f6b7315df98443f20c6628cb9673 (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.inc | 5 |
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; } |