aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2020-12-06 10:17:54 +0530
committerArun Isaac2020-12-06 10:17:54 +0530
commit0a523ab46dc43dc1659bfbf079b2feea58eae2b9 (patch)
treec606da7117e424fb0734337e76ae269bc07a90aa
parent19ad5dad64be7f9b2a261f3286f79d85a2fc6155 (diff)
downloadguile-email-0a523ab46dc43dc1659bfbf079b2feea58eae2b9.tar.gz
guile-email-0a523ab46dc43dc1659bfbf079b2feea58eae2b9.tar.lz
guile-email-0a523ab46dc43dc1659bfbf079b2feea58eae2b9.zip
tests: Parse obsolete Received header.
* tests/email.scm ("Parse obsolete Received header"): New test.
-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")))