mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-04 03:18:49 +03:00
Issue #139 detect Rspamd X-Virus
This commit is contained in:
parent
33b7546e9c
commit
d71b36f09e
3 changed files with 9 additions and 4 deletions
|
|
@ -479,6 +479,9 @@ class Message implements \JsonSerializable
|
|||
$this->bIsSpam = false !== \stripos($spam, 'YES');
|
||||
}
|
||||
|
||||
if ($virus = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::X_VIRUS)) {
|
||||
$this->bHasVirus = true;
|
||||
}
|
||||
if ($virus = $oHeaders->ValueByName(\MailSo\Mime\Enumerations\Header::X_VIRUS_STATUS)) {
|
||||
if (false !== \stripos($spam, 'infected')) {
|
||||
$this->bHasVirus = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue