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/);