unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
@ 2011-03-25  3:25 Konrad Scorciapino
  2011-12-30 10:53 ` David Edmondson
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Scorciapino @ 2011-03-25  3:25 UTC (permalink / raw)
  To: notmuch; +Cc: Konrad Scorciapino

From: Konrad Scorciapino <konrad@scorciapino.com>

---
 emacs/notmuch-show.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index f3150af..2462ec1 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -312,9 +312,10 @@ current buffer, if possible."
 (defun notmuch-show-insert-part-*/* (msg part content-type nth depth declared-type)
   ;; This handler _must_ succeed - it is the handler of last resort.
   (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename))
-  (let ((content (notmuch-show-get-bodypart-content msg part nth)))
+  (let* ((content (notmuch-show-get-bodypart-content msg part nth))
+         (mail-parse-charset (first (detect-coding-string content))))
     (if content
-	(notmuch-show-mm-display-part-inline msg part content-type content)))
+        (notmuch-show-mm-display-part-inline msg part content-type content)))
   t)
 
 ;; Functions for determining how to handle MIME parts.
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-03 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25  3:25 [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html Konrad Scorciapino
2011-12-30 10:53 ` David Edmondson
2012-01-03 12:15   ` Konrad Scorciapino
2012-01-03 12:23     ` David Edmondson

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).