From a2afb101cdd4a86e1fb7ed6d04a26ffc436fbcee Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 25 Jun 2022 05:35:24 -0400 Subject: [PATCH] Fix off-by-one error in Message ID header count check in Util\Emailer --- src/Util/Emailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index 1341aaf33..d04569823 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -141,7 +141,7 @@ class Emailer $countMessageId += count($value); } } - if ($countMessageId > 0) { + if ($countMessageId > 1) { $this->logger->warning('More than one Message-ID found - RFC violation', ['email' => $email]); }