From efca74ee7e9f9eb741e1260ec6a22fd352f130b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Feb 2021 12:31:11 +0100 Subject: [PATCH] Set explicit Message-ID in UserAction::enable() --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index f21b97c2b3..baa7a06c32 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -764,6 +764,12 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio if (empty($this->parameters['skipNotification'])) { foreach ($this->getObjects() as $user) { $email = new Email(); + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.adminActivation/%d/%d/%s', + $user->userID, + TIME_NOW, + \bin2hex(\random_bytes(8)) + )); $email->addRecipient(new UserMailbox($user->getDecoratedObject())); $email->setSubject($user->getLanguage()->getDynamicVariable('wcf.acp.user.activation.mail.subject')); $email->setBody(new MimePartFacade([ -- 2.20.1