Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-57474 mailer: Make sure that our exlicit MessageID is trimmed
The new version of phpmailer shipped with Moodle 3.2 has added check that the explicitly provided MessageID matches /^<.*@.*>$/. Values coming from our overridden moodle_phpmailer::addCustomHeader() had a whitespace at the start. So the requested value was not used as the Message-ID header and the default phpmailer value was used. As a result, forum posts threading was broken in email clients.
- Loading branch information