summaryrefslogtreecommitdiff
path: root/lisp/mail/rfc2047.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-08-04 09:45:50 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-08-04 11:03:10 +0200
commitf025005e8619ab42b43dad5dd470dbbbcdc75041 (patch)
tree5837e55b5e953a22bc64051bd4e2fe8f53e72583 /lisp/mail/rfc2047.el
parent33611906e8e122a51489fbb9716e47062bc34cdb (diff)
downloademacs-f025005e8619ab42b43dad5dd470dbbbcdc75041.tar.gz
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).
Diffstat (limited to 'lisp/mail/rfc2047.el')
-rw-r--r--lisp/mail/rfc2047.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/mail/rfc2047.el b/lisp/mail/rfc2047.el
index bb0d646346c..67874d508b1 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))