$email = new Email();
$email->setSubject($user->getLanguage()->getDynamicVariable('wcf.user.notification.mail.daily.subject', ['count' => count($notifications)]));
$email->addRecipient(new UserMailbox($user));
+ $email->setListID('daily.notification');
$html = new RecipientAwareTextMimePart('text/html', 'email_dailyNotification', 'wcf', ['notifications' => $notifications]);
$plainText = new RecipientAwareTextMimePart('text/plain', 'email_dailyNotification', 'wcf', ['notifications' => $notifications]);
'title' => $event->getEmailTitle()
]));
$email->addRecipient(new UserMailbox($user));
+ $humanReadableListId = $user->getLanguage()->getDynamicVariable('wcf.user.notification.'.$event->objectType.'.'.$event->eventName);
+ $email->setListID($event->eventName.'.'.$event->objectType.'.instant.notification', $humanReadableListId);
$message = $event->getEmailMessage('instant');
if (is_array($message)) {