mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Faster bIsSpam check #162
This commit is contained in:
parent
2ceb036402
commit
c78be97787
2 changed files with 3 additions and 2 deletions
|
@ -466,7 +466,7 @@ class Message implements \JsonSerializable
|
|||
$this->sSpamResult = "{$value[1]} / {$required[1]}";
|
||||
}
|
||||
}
|
||||
$this->bIsSpam = 0 === \strpos($spam, 'Yes,');
|
||||
$this->bIsSpam = 'Yes' === \substr($spam, 0, 3);
|
||||
// $spam = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::X_SPAM_FLAG);
|
||||
// $this->bIsSpam = false !== \stripos($spam, 'YES');
|
||||
}
|
||||
|
|
|
@ -59,7 +59,8 @@ abstract class Header
|
|||
X_SPAM_FLAG = 'X-Spam-Flag', // YES/NO
|
||||
X_SPAM_LEVEL = 'X-Spam-Level', // *******
|
||||
X_SPAM_STATUS = 'X-Spam-Status', // Yes|No
|
||||
X_SPAM_BAR = 'X-Spam-Bar', // ++
|
||||
X_SPAM_BAR = 'X-Spam-Bar', // ++ | --
|
||||
X_SPAM_REPORT = 'X-Spam-Report',
|
||||
// Rspamd
|
||||
X_SPAMD_RESULT = 'X-Spamd-Result', // default: False [7.13 / 9.00],
|
||||
X_SPAMD_BAR = 'X-Spamd-Bar', // +++++++
|
||||
|
|
Loading…
Reference in a new issue