[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f025005e86 1/2: Fix double-encoding attachment headers in single-
From: |
Lars Ingebrigtsen |
Subject: |
master f025005e86 1/2: Fix double-encoding attachment headers in single-part rfc2047 |
Date: |
Thu, 4 Aug 2022 05:03:15 -0400 (EDT) |
branch: master
commit f025005e8619ab42b43dad5dd470dbbbcdc75041
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix double-encoding attachment headers in single-part rfc2047
* lisp/mail/rfc2047.el (rfc2047-header-encoding-alist): Don't
double-encode Content-Disposition in mails with no other body
(bug#56906).
---
lisp/mail/rfc2047.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el
index bb0d646346..67874d508b 100644
--- a/lisp/mail/rfc2047.el
+++ b/lisp/mail/rfc2047.el
@@ -45,6 +45,9 @@
'(("Newsgroups" . nil)
("Followup-To" . nil)
("Message-ID" . nil)
+ ;; This header must be pre-encoded by the MTA, so avoid
+ ;; double-encoding it.
+ ("Content-Disposition" . default)
("\\(Resent-\\)?\\(From\\|Cc\\|To\\|Bcc\\|\\(In-\\)?Reply-To\\|Sender\
\\|Mail-Followup-To\\|Mail-Copies-To\\|Approved\\|Disposition-Notification-To\\)"
. address-mime)
(t . mime))