From: Tim Düsterhus Date: Mon, 15 Feb 2021 11:31:11 +0000 (+0100) Subject: Set explicit Message-ID in UserAction::enable() X-Git-Tag: 5.4.0_Alpha_1~252^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efca74ee7e9f9eb741e1260ec6a22fd352f130b7;p=GitHub%2FWoltLab%2FWCF.git Set explicit Message-ID in UserAction::enable() --- 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([