summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/email.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/email.scm b/tests/email.scm
index fb2c45b..ab2a408 100644
--- a/tests/email.scm
+++ b/tests/email.scm
@@ -144,4 +144,13 @@ foo
    "=?iso-8859-1?Q?=A1Hola,_se=F1or!?= =?UTF-8?Q?B=C3=A3r?=")
   "¡Hola, señor! Bãr")
 
+(test-equal "decode MIME encoded words in Subject header"
+  (parse-email-headers "Subject: Foo =?UTF-8?Q?B=C3=A3r?=
+")
+  `((content-type (type . text)
+                  (subtype . plain)
+                  (charset . "utf-8"))
+    (content-transfer-encoding . 7bit)
+    (subject . "Foo Bãr")))
+
 (test-end "email")