Fix dummy Message-Id when resuming a draft without Message-Id header (#6548)

pull/6566/head
Aleksander Machniak 6 years ago
parent 708ceb2ba0
commit 45618273e0

@ -44,6 +44,7 @@ CHANGELOG Roundcube Webmail
- Fix listing the same attachment multiple times on forwarded messages - Fix listing the same attachment multiple times on forwarded messages
- Fix bug where a message/rfc822 part without a filename wasn't listed on the attachments list (#6494) - Fix bug where a message/rfc822 part without a filename wasn't listed on the attachments list (#6494)
- Fix inconsistent offset for various time zones - always display Standard Time offset (#6531) - Fix inconsistent offset for various time zones - always display Standard Time offset (#6531)
- Fix dummy Message-Id when resuming a draft without Message-Id header (#6548)
RELEASE 1.4-beta RELEASE 1.4-beta
---------------- ----------------

@ -227,7 +227,9 @@ if (!empty($msg_uid) && empty($COMPOSE['as_attachment'])) {
} }
} }
$COMPOSE['param']['message-id'] = $MESSAGE->headers->get('message-id'); if (($msgid = $MESSAGE->headers->get('message-id')) && !preg_match('/^mid:[0-9]+$/', $msgid)) {
$COMPOSE['param']['message-id'] = $msgid;
}
// use message UID as draft_id // use message UID as draft_id
$OUTPUT->set_env('draft_id', $msg_uid); $OUTPUT->set_env('draft_id', $msg_uid);

Loading…
Cancel
Save