From 54957f2b04aa977415f4d2f5aa23ab2b11e3eb18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 18 Feb 2021 12:44:48 +0100 Subject: [PATCH] Shorten the logged email subject to 20 characters Co-authored-by: Alexander Ebert --- .../system/background/job/EmailDeliveryBackgroundJob.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php index 9307d1d5e9..34f4c91db1 100644 --- a/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php +++ b/wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php @@ -87,7 +87,7 @@ class EmailDeliveryBackgroundJob extends AbstractBackgroundJob 'data' => [ 'time' => \TIME_NOW, 'messageID' => $this->email->getMessageID(), - 'subject' => StringUtil::truncate($this->email->getSubject(), 30), + 'subject' => StringUtil::truncate($this->email->getSubject(), 20), 'recipient' => $this->envelopeTo->getAddress(), 'recipientID' => ($this->envelopeTo instanceof UserMailbox) ? $this->envelopeTo->getUser()->userID : null, 'status' => EmailLogEntry::STATUS_NEW, -- 2.20.1