From 24a87912f428e6f4573f7dbd0fc3607b8e42edcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Feb 2021 12:27:17 +0100 Subject: [PATCH] Set explicit Message-ID in SendNewPasswordWorker --- .../files/lib/system/worker/SendNewPasswordWorker.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php index 071f20ac32..35bf72dd2e 100644 --- a/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SendNewPasswordWorker.class.php @@ -125,6 +125,12 @@ class SendNewPasswordWorker extends AbstractWorker protected function sendLink(User $user) { $email = new Email(); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.sendNewPassword/%d/%d/%s', + $user->userID, + TIME_NOW, + \bin2hex(\random_bytes(8)) + )); $email->addRecipient(new UserMailbox($user)); $email->setSubject($user->getLanguage()->getDynamicVariable('wcf.acp.user.sendNewPassword.mail.subject')); $email->setBody(new MimePartFacade([ -- 2.20.1