summaryrefslogtreecommitdiff
path: root/tests/email.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/email.scm')
-rw-r--r--tests/email.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/email.scm b/tests/email.scm
index 03c3b70..477ddc9 100644
--- a/tests/email.scm
+++ b/tests/email.scm
@@ -376,6 +376,15 @@ copyright =A9")
(charset . "utf-8"))
(content-transfer-encoding . 7bit)))
+(test-alist= "blank Subject header must be treated as having the null string as value"
+ (parse-email-headers
+ "Subject:
+")
+ '((subject . "")
+ (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")))