Shorten the logged email subject to 20 characters
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 11:44:48 +0000 (12:44 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 18 Feb 2021 15:25:20 +0000 (16:25 +0100)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
wcfsetup/install/files/lib/system/background/job/EmailDeliveryBackgroundJob.class.php

index 9307d1d5e9043bb4a0f0a00ea1c89c625b5bea74..34f4c91db14a23e786d55537729d193e3ae1cfb2 100644 (file)
@@ -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,