X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FEmailer.php;h=d04569823366e5dbfa8b55b76691e640aeabc404;hb=b5ad8c3e153976cf3e63753597377f09852d98d7;hp=b402abf25e66ca01230ebe3bf286ea58ce8e7aa3;hpb=545517e85f9ae5c27334b16d6e9cedecc41063ed;p=friendica.git diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index b402abf25e..d045698233 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -1,6 +1,6 @@ config = $config; @@ -134,6 +134,17 @@ class Emailer return true; } + // @see https://github.com/friendica/friendica/issues/9142 + $countMessageId = 0; + foreach ($email->getAdditionalMailHeader() as $name => $value) { + if (strtolower($name) == 'message-id') { + $countMessageId += count($value); + } + } + if ($countMessageId > 1) { + $this->logger->warning('More than one Message-ID found - RFC violation', ['email' => $email]); + } + $email_textonly = false; if (!empty($email->getRecipientUid())) { $email_textonly = $this->pConfig->get($email->getRecipientUid(), 'system', 'email_textonly');