From 121073cb725aef9baecaac0cfb6cf3f5a287c4e7 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 9 Oct 2019 02:04:38 +0530 Subject: email: Return keywords header as a list. * email/email.scm (parse-email-headers): Return keywords header as a list of strings. * tests/email.scm ("keywords header must be a list"): New test. --- tests/email.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/email.scm') 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 ") '((name . "Foo") (address . "foo@example.org"))) -- cgit v1.2.3