mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Fix detection of spam via X-Spam-Status header
http://www.virtualmin.com/node/17856
This commit is contained in:
@@ -89,8 +89,8 @@ if ($spam) {
|
||||
$isspam = undef;
|
||||
open(SPAMOUT, $temp);
|
||||
while(<SPAMOUT>) {
|
||||
if (/^X-Spam-Status:\s+(\S+)/i) {
|
||||
$isspam = lc($1) eq 'yes' ? 1 : 0;
|
||||
if (/^X-Spam-Status:\s+Yes/i) {
|
||||
$isspam = 1;
|
||||
last;
|
||||
}
|
||||
last if (!/\S/);
|
||||
|
||||
Reference in New Issue
Block a user