]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
notmuch/emacs: Observe the charset of text/html parts, where known.
[notmuch] / emacs / notmuch-show.el
index 2806879e53cfff412e07c4b175478f8ed728998e..034db87e552d696983c918614bc5ca7940346ece 100644 (file)
@@ -328,7 +328,8 @@ message at DEPTH in the current thread."
 current buffer, if possible."
   (let ((display-buffer (current-buffer)))
     (with-temp-buffer
-      (let ((handle (mm-make-handle (current-buffer) (list content-type))))
+      (let* ((charset (plist-get part :content-charset))
+            (handle (mm-make-handle (current-buffer) `(,content-type (charset . ,charset)))))
        (if (and (mm-inlinable-p handle)
                 (mm-inlined-p handle))
            (let ((content (notmuch-show-get-bodypart-content msg part nth)))