diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-11-10 18:50:17 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-11-10 18:50:17 +0100 |
commit | ceb2a31b3857925e749047e2c4c574a38bf8e9ed (patch) | |
tree | d8edab893f1cf11d687020ed4e12f4cc59e375af /program/steps/mail | |
parent | 7bfc02e122a6f043be5b03bc91ecb4d87e9afc15 (diff) |
Compare draft message-ID when restoring local message contents
Diffstat (limited to 'program/steps/mail')
-rw-r--r-- | program/steps/mail/compose.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index a791cf8b7..8d275f930 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -240,6 +240,9 @@ if (!empty($msg_uid) && empty($COMPOSE['as_attachment'])) $COMPOSE['reply_msgid'] = '<' . $in_reply_to . '>'; $COMPOSE['references'] = $MESSAGE->headers->references; + + // use message-ID as draft_id, same as in sendmail.inc + $OUTPUT->set_env('draft_id', trim($MESSAGE->headers->get('message-id'), '<>')); } } else { |