From: Tim Düsterhus Date: Mon, 15 Feb 2021 11:25:01 +0000 (+0100) Subject: Set explicit Message-ID in ExceptionMailerCronjob X-Git-Tag: 5.4.0_Alpha_1~252^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbff8bd5d539d9c8fb5598ae13079b2e0c053128;p=GitHub%2FWoltLab%2FWCF.git Set explicit Message-ID in ExceptionMailerCronjob --- diff --git a/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php index 2886a8b15d..eb1d9591d8 100644 --- a/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/ExceptionMailerCronjob.class.php @@ -89,6 +89,11 @@ class ExceptionMailerCronjob extends AbstractCronjob $language = LanguageFactory::getInstance()->getDefaultLanguage(); $email = new Email(); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.exceptionMailer/%d/%s', + $timestamp, + \bin2hex(\random_bytes(8)) + )); $email->addRecipient(new Mailbox(MAIL_ADMIN_ADDRESS, null, $language)); $email->setSubject($language->getDynamicVariable('wcf.acp.exceptionLog.email.subject', [ 'date' => $timestamp,