mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Resolve #456
This commit is contained in:
parent
846d21ed13
commit
3ba51f04b5
1 changed files with 2 additions and 2 deletions
|
|
@ -428,9 +428,9 @@ class Message implements \JsonSerializable
|
|||
$oMessage->bIsSpam = false !== \stripos($oMessage->sSubject, '*** SPAM ***');
|
||||
} else if ($spam = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::X_BOGOSITY)) {
|
||||
$oMessage->sSpamResult = $spam;
|
||||
$oMessage->bIsSpam = !!\preg_match('/yes|spam/', $spam);
|
||||
$oMessage->bIsSpam = !\str_contains($spam, 'Ham');
|
||||
if (\preg_match('/spamicity=([\\d\\.]+)/', $spam, $spamicity)) {
|
||||
$oMessage->setSpamScore(\floatval($spamicity[1]));
|
||||
$oMessage->setSpamScore(100 * \floatval($spamicity[1]));
|
||||
}
|
||||
} else if ($spam = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::X_SPAM_STATUS)) {
|
||||
$oMessage->sSpamResult = $spam;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue