diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php index 19c5d6764..40dd58ea0 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Mail/Message.php @@ -261,8 +261,8 @@ public static function fromFetchResponse(string $sFolder, \MailSo\Imap\FetchResp } } // https://github.com/the-djmaze/snappymail/issues/1228 - else if (\preg_match('@([\\d\\.]+)/([\\d\\.]+)@', $spam, $value) - || \preg_match('@([\\d\\.]+)/([\\d\\.]+)@', $oHeaders->ValueByName(MimeHeader::X_SPAM_INFO), $value) + else if (\preg_match('@(-?[\d\.]+)/([\d\.]+)@', $spam, $value) + || \preg_match('@(-?[\d\.]+)/([\d\.]+)@', $oHeaders->ValueByName(MimeHeader::X_SPAM_INFO), $value) ) { if ($threshold = \floatval($value[2])) { $oMessage->setSpamScore(100 * \floatval($value[1]) / $threshold);