summaryrefslogtreecommitdiff
path: root/tests/email.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/email.scm')
-rw-r--r--tests/email.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/email.scm b/tests/email.scm
index c82f567..03c3b70 100644
--- a/tests/email.scm
+++ b/tests/email.scm
@@ -365,6 +365,17 @@ copyright =A9")
(content-transfer-encoding . quoted-printable))
"copyright �"))
+(test-alist= "keywords header must be a list"
+ (parse-email-headers
+ "Keywords: foo, bar
+")
+
+ `((keywords " foo" " bar")
+ (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")))