diff options
author | Eric Wong <e@80x24.org> | 2014-04-09 00:06:53 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-09 01:29:42 +0000 |
commit | 84030f441bc072d64745d6df49e56e603194fe95 (patch) | |
tree | d56227b6a4b526f0ef4b04a285705c54fff4ecad /t | |
parent | 789f3d2e35034632da49d988e2e90f2e4c95604c (diff) | |
download | public-inbox-84030f441bc072d64745d6df49e56e603194fe95.tar.gz |
We should reject values which are too short to be useful or sane.
Diffstat (limited to 't')
-rw-r--r-- | t/precheck.t | 9 |
1 files changed, 6 insertions, 3 deletions
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' => '<MID>', + 'Message-ID' => '<MID@host>', + Date => 'Wed, 09 Apr 2014 01:28:34 +0000', ], body => "hello world\n", )); @@ -50,7 +51,8 @@ sub do_checks { Cc => 'John Doe <c@example.com>', 'Content-Type' => 'text/plain', Subject => 'this is a subject', - 'Message-ID' => '<MID>', + 'Message-ID' => '<MID@host>', + 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' => '<MID>', + 'Message-ID' => '<MID@host>', + Date => 'Wed, 09 Apr 2014 01:28:34 +0000', ], body => "hello world\n", ); |