From 84030f441bc072d64745d6df49e56e603194fe95 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 9 Apr 2014 00:06:53 +0000 Subject: precheck: stricter checks including min length We should reject values which are too short to be useful or sane. --- t/precheck.t | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 't/precheck.t') diff --git a/t/precheck.t b/t/precheck.t index 1bfa4c9f..acfd5e8b 100644 --- a/t/precheck.t +++ b/t/precheck.t @@ -36,7 +36,8 @@ sub do_checks { Cc => 'c@example.com', 'Content-Type' => 'text/plain', Subject => 'this is a subject', - 'Message-ID' => '', + 'Message-ID' => '', + Date => 'Wed, 09 Apr 2014 01:28:34 +0000', ], body => "hello world\n", )); @@ -50,7 +51,8 @@ sub do_checks { Cc => 'John Doe ', 'Content-Type' => 'text/plain', Subject => 'this is a subject', - 'Message-ID' => '', + 'Message-ID' => '', + Date => 'Wed, 09 Apr 2014 01:28:34 +0000', ], body => "hello world\n", )); @@ -64,7 +66,8 @@ sub do_checks { Cc => 'c@example.com', 'Content-Type' => 'text/plain', Subject => 'this is a subject', - 'Message-ID' => '', + 'Message-ID' => '', + Date => 'Wed, 09 Apr 2014 01:28:34 +0000', ], body => "hello world\n", ); -- cgit v1.2.3-24-ge0c7