From: Tim Düsterhus Date: Thu, 18 Feb 2021 11:44:48 +0000 (+0100) Subject: Shorten the logged email subject to 20 characters X-Git-Tag: 5.4.0_Alpha_1~252^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=54957f2b04aa977415f4d2f5aa23ab2b11e3eb18;p=GitHub%2FWoltLab%2FWCF.git Shorten the logged email subject to 20 characters Co-authored-by: Alexander Ebert --- 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,