From 9e43c9e6e483381b1a7cd28d2e1d4f12f63f51c4 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Sun, 1 Dec 2024 11:54:11 +0530 Subject: [PATCH] Fix decoding of non-ASCII email attachments * lisp/mail/rfc2231.el (rfc2231-parse-string): Fix logic when a non-ASCII file name is split between two filename*N* parts. (Bug#74624) (cherry picked from commit 4c67f636c08b6190bb5ab8953d1956b3862a9fb1) --- lisp/mail/rfc2231.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/mail/rfc2231.el b/lisp/mail/rfc2231.el index 33324cafb5b..632e270a922 100644 --- a/lisp/mail/rfc2231.el +++ b/lisp/mail/rfc2231.el @@ -193,7 +193,7 @@ must never cause a Lisp error." (push (list attribute value encoded) cparams)) ;; Repetition of a part; do nothing. ((and elem - (null number)) + (null part)) ) ;; Concatenate continuation parts. (t -- 2.39.5