]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix decoding of non-ASCII email attachments
authorVisuwesh <visuweshm@gmail.com>
Sun, 1 Dec 2024 06:24:11 +0000 (11:54 +0530)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Dec 2024 17:01:50 +0000 (18:01 +0100)
* 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

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