spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quin...@apache.org
Subject svn commit: rev 30889 - spamassassin/trunk/rules
Date Thu, 29 Jul 2004 02:27:06 GMT
Author: quinlan
Date: Wed Jul 28 19:27:05 2004
New Revision: 30889

Modified:
   spamassassin/trunk/rules/20_head_tests.cf
Log:
trivial speed-up for UNRESOLVED_TEMPLATE (removes * and +, uses {n,m}
instead with no loss of hits on my spam corpus)


Modified: spamassassin/trunk/rules/20_head_tests.cf
==============================================================================
--- spamassassin/trunk/rules/20_head_tests.cf	(original)
+++ spamassassin/trunk/rules/20_head_tests.cf	Wed Jul 28 19:27:05 2004
@@ -223,7 +223,7 @@
 header DATE_IN_FUTURE_96_XX	eval:check_for_shifted_date('96', 'undef')
 describe DATE_IN_FUTURE_96_XX	Date: is 96 hours or more after Received: date
 
-header UNRESOLVED_TEMPLATE	ALL =~ /^(?!(?i:X-UIDL|X-Face|To|Cc|From|Subject|References|In-Reply-To|(?:X-|Resent-|X-Original-)?Message-Id):)[\w-]+:(?:[^\n]*|\n[
\t])*%[A-Z][A-Z_-]+/m
+header UNRESOLVED_TEMPLATE	ALL =~ /^(?!(?i:X-UIDL|X-Face|To|Cc|From|Subject|References|In-Reply-To|(?:X-|Resent-|X-Original-)?Message-Id):)[\w-]{1,24}:(?:[^\n]{0,100}|\n[
\t]){0,2}%[A-Z][A-Z_-]/m
 describe UNRESOLVED_TEMPLATE	Headers contain an unresolved template
 
 ###########################################################################

Mime
View raw message