Short answer: the monster query used to generate this table is incorrect. The blocked messages are not counted if they are also marked as spam - which messages that get blocked tend to be. The change needed to the query is:
Code: Select all
[root@efa mailscanner]# diff -c functions.php.org functions.php
*** functions.php.org 2016-05-05 10:48:31.136301817 +0800
--- functions.php 2016-05-05 10:49:29.659234606 +0800
***************
*** 431,438 ****
nameinfected>0
AND (virusinfected=0 OR virusinfected IS NULL)
AND (otherinfected=0 OR otherinfected IS NULL)
! AND (isspam=0 OR isspam IS NULL)
! AND (ishighspam=0 OR ishighspam IS NULL)
THEN 1 ELSE 0 END
) AS blockedfiles,
ROUND((
--- 431,438 ----
nameinfected>0
AND (virusinfected=0 OR virusinfected IS NULL)
AND (otherinfected=0 OR otherinfected IS NULL)
! -- AND (isspam=0 OR isspam IS NULL)
! -- AND (ishighspam=0 OR ishighspam IS NULL)
THEN 1 ELSE 0 END
) AS blockedfiles,
ROUND((
***************
*** 441,448 ****
nameinfected>0
AND (virusinfected=0 OR virusinfected IS NULL)
AND (otherinfected=0 OR otherinfected IS NULL)
! AND (isspam=0 OR isspam IS NULL)
! AND (ishighspam=0 OR ishighspam IS NULL)
THEN 1 ELSE 0 END
)/COUNT(*))*100,1
) AS blockedfilespercent,
--- 441,448 ----
nameinfected>0
AND (virusinfected=0 OR virusinfected IS NULL)
AND (otherinfected=0 OR otherinfected IS NULL)
! -- AND (isspam=0 OR isspam IS NULL)
! -- AND (ishighspam=0 OR ishighspam IS NULL)
THEN 1 ELSE 0 END
)/COUNT(*))*100,1
) AS blockedfilespercent,