Fix decoding of non-ASCII email attachments
authorVisuwesh <visuweshm@gmail.com>
Sun, 1 Dec 2024 06:24:11 +0000 (11:54 +0530)
committerEli Zaretskii <eliz@gnu.org>
Sun, 1 Dec 2024 08:16:10 +0000 (10:16 +0200)
* lisp/mail/rfc2231.el (rfc2231-parse-string): Fix logic when a
non-ASCII file name is split between two filename*N* parts.
(Bug#74624)

lisp/mail/rfc2231.el

index 33324cafb5b197d21b0d0fdacc3f7b45dc38fe6a..632e270a922702e1e0b86ba6a0265ef7914103f7 100644 (file)
@@ -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