From cde15eae6f4fb7cb9f8502beac1c91734fac2aca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 15 Feb 2021 12:32:40 +0100 Subject: [PATCH] Set fallback Message-ID in UserNotificationHandler::sendInstantMailNotification() --- .../user/notification/UserNotificationHandler.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.20.1