From fbff8bd5d539d9c8fb5598ae13079b2e0c053128 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Feb 2021 12:25:01 +0100 Subject: [PATCH] Set explicit Message-ID in ExceptionMailerCronjob --- .../lib/system/cronjob/ExceptionMailerCronjob.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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, -- 2.20.1