diff options
-rw-r--r-- | tests/email.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/email.scm b/tests/email.scm index 0d93876..83ef91f 100644 --- a/tests/email.scm +++ b/tests/email.scm @@ -481,6 +481,20 @@ copyright =A9") (charset . "utf-8")) (content-transfer-encoding . 7bit))) +(test-expect-fail + "Trace with only one Received header should be a list of received traces, not a single received trace") + +(test-alist= "Trace with only one Received header should be a list of received traces, not a single received trace" + (parse-email-headers + "Received: by foo.bar.com id ZZZ55555; Thu, 31 May 2001 16:38:04 -1000 (HST) +") + `((trace (received "by foo.bar.com id ZZZ55555" + ,(make-date 0 4 38 16 31 5 2001 -36000))) + (content-type (type . text) + (subtype . plain) + (charset . "utf-8")) + (content-transfer-encoding . 7bit))) + (test-alist= "Parse obsolete Received header" (parse-email-headers "Received: by foo.bar.com id ZZZ55555 |