You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2018/02/24 00:37:46 UTC

svn commit: r1825185 - /spamassassin/branches/3.4/rules/20_head_tests.cf

Author: gbechis
Date: Sat Feb 24 00:37:46 2018
New Revision: 1825185

URL: http://svn.apache.org/viewvc?rev=1825185&view=rev
Log:
As per rfc 5322 the time zone is a required field,
so a date without time zone should be considered as invalid
bz #6894

Modified:
    spamassassin/branches/3.4/rules/20_head_tests.cf

Modified: spamassassin/branches/3.4/rules/20_head_tests.cf
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/rules/20_head_tests.cf?rev=1825185&r1=1825184&r2=1825185&view=diff
==============================================================================
--- spamassassin/branches/3.4/rules/20_head_tests.cf (original)
+++ spamassassin/branches/3.4/rules/20_head_tests.cf Sat Feb 24 00:37:46 2018
@@ -158,8 +158,8 @@ header INVALID_DATE		Date !~ /^\s*(?:(?i
 describe INVALID_DATE		Invalid Date: header (not RFC 2822)
 test INVALID_DATE fail    Sat, 31 Dec 2005 23:59:60 -0500
 test INVALID_DATE fail    Wed, 31 Jul 2002 16:41:57 +0200
+test INVALID_DATE fail    Sat, 31 Dec 2005 23:00:00 
 test INVALID_DATE ok      Sat, 31 Dec 2005 24:00:00 -0500
-#test INVALID_DATE ok      Sat, 31 Dec 2005 23:00:00 
 test INVALID_DATE ok      Thurs, 31 Jul 2002 16:41:57 +0200
 
 # allow +1300, NZ timezone