diff options
author | Simon Rettberg | 2023-05-12 14:24:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-05-12 14:24:15 +0200 |
commit | 1e1a9362d24d1768dc140ebfc7150774dc2c055c (patch) | |
tree | b59a0941e62b738eefcac83c6cfdedee20a9b277 /inc/mailer.inc.php | |
parent | [inc/Mailer] Allow Somename <some@example.com> format as FROM (diff) | |
download | slx-admin-1e1a9362d24d1768dc140ebfc7150774dc2c055c.tar.gz slx-admin-1e1a9362d24d1768dc140ebfc7150774dc2c055c.tar.xz slx-admin-1e1a9362d24d1768dc140ebfc7150774dc2c055c.zip |
[inc/Mailer] Remove repeated Expire spam from error log
Diffstat (limited to 'inc/mailer.inc.php')
-rw-r--r-- | inc/mailer.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/mailer.inc.php b/inc/mailer.inc.php index 05b6a08c..728e91b5 100644 --- a/inc/mailer.inc.php +++ b/inc/mailer.inc.php @@ -89,7 +89,8 @@ class Mailer public function getLog(): string { - return $this->errlog; + // Remove repeated "Expire" messages, keep only last one + return preg_replace('/^\* Expire in \d+ ms for.*[\\r\\n]+(?=\* Expire)/m','$1', $this->errlog); } public static function queue(int $configid, array $rcpts, string $subject, string $text) |