summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-29 13:49:49 +0000
committerthomascube <thomas@roundcube.net>2012-01-29 13:49:49 +0000
commitee9ee7f66fae218afe24942166ba833eb490ada3 (patch)
treed47357cfb671c25599fa6fe965066939fb10915d /program
parent82775db0a4aba866898bcab01e90feaae3f56c99 (diff)
Backported r5820 and r5842
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/sendmail.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 64deb73d8..1b9d387f6 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -730,9 +730,10 @@ if ($savedraft) {
$saved = $draftuids[0];
}
$COMPOSE['param']['draft_uid'] = $saved;
+ $plugin = $RCMAIL->plugins->exec_hook('message_draftsaved', array('msgid' => $msgid, 'uid' => $saved, 'folder' => $store_target));
// display success
- $OUTPUT->show_message('messagesaved', 'confirmation');
+ $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'messagesaved', 'confirmation');
// update "_draft_saveid" and the "cmp_hash" to prevent "Unsaved changes" warning
$OUTPUT->command('set_draft_id', $msgid);