From: Konrad Scorciapino <konr@konr.mobi>
To: notmuch@notmuchmail.org
Cc: Konrad Scorciapino <konrad@scorciapino.com>
Subject: [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html
Date: Fri, 25 Mar 2011 00:25:59 -0300 [thread overview]
Message-ID: <1301023559-8097-1-git-send-email-konr@konr.mobi> (raw)
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
next reply other threads:[~2011-03-25 3:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-25 3:25 Konrad Scorciapino [this message]
2011-12-30 10:53 ` [PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there is no charset metadata in the html David Edmondson
2012-01-03 12:15 ` Konrad Scorciapino
2012-01-03 12:23 ` David Edmondson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1301023559-8097-1-git-send-email-konr@konr.mobi \
--to=konr@konr.mobi \
--cc=konrad@scorciapino.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).