From: Tim Düsterhus Date: Mon, 15 Feb 2021 11:32:40 +0000 (+0100) Subject: Set fallback Message-ID in UserNotificationHandler::sendInstantMailNotification() X-Git-Tag: 5.4.0_Alpha_1~252^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cde15eae6f4fb7cb9f8502beac1c91734fac2aca;p=GitHub%2FWoltLab%2FWCF.git Set fallback Message-ID in UserNotificationHandler::sendInstantMailNotification() --- diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index 4cb958896f..f6fca466a5 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -774,6 +774,12 @@ class UserNotificationHandler extends SingletonFactory if (isset($message['message-id'])) { $email->setMessageID($message['message-id']); + } else { + $email->setMessageID(\sprintf( + 'com.woltlab.wcf.genericNotification/%d/%d', + $notification->notificationID, + TIME_NOW + )); } if (isset($message['in-reply-to'])) { foreach ($message['in-reply-to'] as $inReplyTo) {