Set fallback Message-ID in UserNotificationHandler::sendInstantMailNotification()
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 15 Feb 2021 11:32:40 +0000 (12:32 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 15:25:20 +0000 (16:25 +0100)
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 4cb958896f479c26fbf2a71d7887e82964bc1a32..f6fca466a50f2f62d282ad278c7c7a87a0185fbc 100644 (file)
@@ -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) {