From 7a9c9996f2fb5780155e01f9652def767680d52e Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 14 Apr 2011 14:20:52 -0700 Subject: [PATCH] Fix detection of spam via X-Spam-Status header http://www.virtualmin.com/node/17856 --- sendmail/autoreply.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sendmail/autoreply.pl b/sendmail/autoreply.pl index 2e3416246..5097b8652 100755 --- a/sendmail/autoreply.pl +++ b/sendmail/autoreply.pl @@ -89,8 +89,8 @@ if ($spam) { $isspam = undef; open(SPAMOUT, $temp); while() { - 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/);