summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/email.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/email.scm b/tests/email.scm
index ac60f0e..0d93876 100644
--- a/tests/email.scm
+++ b/tests/email.scm
@@ -481,6 +481,18 @@ copyright =A9")
                   (charset . "utf-8"))
     (content-transfer-encoding . 7bit)))
 
+(test-alist= "Parse obsolete Received header"
+  (parse-email-headers
+   "Received: by foo.bar.com id ZZZ55555
+Received: from zzz ([1.2.3.5]) by ooo.ooo.com  with Maccrosoft SMTPSVC(5.5.1877.197.19)
+")
+  '((trace (received "by foo.bar.com id ZZZ55555")
+           (received "from zzz by ooo.ooo.com with Maccrosoft SMTPSVC"))
+    (content-type (type . text)
+                  (subtype . plain)
+                  (charset . "utf-8"))
+    (content-transfer-encoding . 7bit)))
+
 (test-equal "parse name-addr email address"
   (parse-email-address "Foo <foo@example.org>")
   '((name . "Foo") (address . "foo@example.org")))