You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2004/03/01 01:52:58 UTC
svn commit: rev 6938 - in incubator/spamassassin/trunk: rules t
Author: jm
Date: Sun Feb 29 16:52:57 2004
New Revision: 6938
Modified:
incubator/spamassassin/trunk/rules/70_testing.cf
incubator/spamassassin/trunk/t/dnsbl.t
Log:
added T_FAKED_AUTHWARN rule
Modified: incubator/spamassassin/trunk/rules/70_testing.cf
==============================================================================
--- incubator/spamassassin/trunk/rules/70_testing.cf (original)
+++ incubator/spamassassin/trunk/rules/70_testing.cf Sun Feb 29 16:52:57 2004
@@ -592,3 +592,11 @@
meta T_OPT_HEADER (__T_OPT_HEADER_ALL && !__T_OPT_HEADER_SUBJ)
describe T_OPT_HEADER Headers include an "opt"ed phrase
+# match the format of a legit X-Auth-Warning header, and hit on fake ones
+# normal: "e4e.oac.uci.edu: foo owned process doing -bs"
+# fake: "bzgrdag, upaeqehv"
+header __HAS_AUTHWARN X-Authentication-Warning =~ /^./
+header __NORMAL_AUTHWARN X-Authentication-Warning !~ /^(\S+\.\S+): /
+meta T_FAKED_AUTHWARN (__HAS_AUTHWARN && !__NORMAL_AUTHWARN)
+describe T_FAKED_AUTHWARN 'X-Authentication-Warning' looks faked
+
Modified: incubator/spamassassin/trunk/t/dnsbl.t
==============================================================================
--- incubator/spamassassin/trunk/t/dnsbl.t (original)
+++ incubator/spamassassin/trunk/t/dnsbl.t Sun Feb 29 16:52:57 2004
@@ -3,7 +3,7 @@
use lib '.'; use lib 't';
use SATest; sa_t_init("dns");
-use constant TEST_ENABLED => (-e 't/do_net');
+use constant TEST_ENABLED => (-e 't/do_net' || -e 'do_net');
use constant HAS_NET_DNS => eval { require Net::DNS; };
use Test;