1
require "vnd.dovecot.testsuite";
6
test_set "message" text:
7
From: stephan@rename-it.nl
8
To: sirius@drunksnipers.com
10
Date: Mon, 20 Jul 2009 21:44:43 +0300
11
Delivery-Date: Mon, 22 Jul 2009 23:30:14 +0300
12
Invalid-Date: Moo, 34 Juul 3060 25:30:42 +6600
18
if not date :originalzone "date" "std11" "mon, 20 jul 2009 21:44:43 +0300" {
19
test_fail "default comparator is not i;ascii-casemap";
22
if anyof ( date "date" "std11" "Mon", date "date" "std11" "*") {
23
test_fail "default match type appears to be :contains or :matches";
28
if not date :count "eq" "date" "date" "1" {
29
test_fail "count of existing date header field is not 1";
32
if not date :count "eq" "resent-date" "date" "0" {
33
test_fail "count of non-existent date header field is not 0";
38
if date :matches "invalid-date" "std11" "*" {
39
test_fail "matched invalid date: ${0}";