From 7c6f220e95feb3bc79f48aca16b5ca691a561d97 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 21 Jul 2019 21:40:37 +0530 Subject: email: Decode MIME encoded words in Subject header. Prior to this, MIME encoded words in the Subject header were not decoded. * email/email.scm (parse-email-headers): Decode MIME encoded words in Subject header. * tests/email.scm ("decode MIME encoded words in Subject header"): New test. Reported-by: Ricardo Wurmus --- email/email.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'email') diff --git a/email/email.scm b/email/email.scm index 20bf291..752c941 100644 --- a/email/email.scm +++ b/email/email.scm @@ -812,6 +812,8 @@ list of header keys and values." (content . ,post-process-content-type) (encoding . ,post-process-content-transfer-encoding) (disposition . ,post-process-content-disposition) + (subject . ,(match-lambda* (`(subject ,subject) + `(subject ,(decode-mime-encoded-word subject))))) (fields . ,(lambda (_ . fields) (add-default-headers (filter-map (match-lambda -- cgit v1.2.3