]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem with non-ASCII characters in nnmaildir
authorAlexandre Duret-Lutz <adl@lrde.epita.fr>
Mon, 11 Jan 2021 14:27:54 +0000 (15:27 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2021 08:03:22 +0000 (09:03 +0100)
* lisp/gnus/nnmaildir.el (nnmaildir-request-article): Enable
multipart 8bit-content-transfer-encoded files to be displayed
correctly by reading as `raw-text' instead of having Emacs
(incorrectly) decode the files (bug#44307).

Copyright-paperwork-exempt: yes

lisp/gnus/nnmaildir.el

index 9cf766ee465192f58af064d038494f5ece10dd45..5461c4c960eb8f72e27bb3eeecfc2c22835978b4 100644 (file)
@@ -1351,7 +1351,8 @@ This variable is set by `nnmaildir-request-article'.")
        (throw 'return nil))
       (with-current-buffer (or to-buffer nntp-server-buffer)
        (erase-buffer)
-       (nnheader-insert-file-contents nnmaildir-article-file-name))
+       (let ((coding-system-for-read mm-text-coding-system))
+         (mm-insert-file-contents nnmaildir-article-file-name)))
       (cons gname num-msgid))))
 
 (defun nnmaildir-request-post (&optional _server)