[PATCH] bound mail-parse-charset, used by some functions on mm-view.el when there...
authorKonrad Scorciapino <konr@konr.mobi>
Fri, 25 Mar 2011 03:25:59 +0000 (00:25 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:02 +0000 (09:38 -0800)
59/196ad41bf877a4d94ea53cc5f7b38dfcf90bfe [new file with mode: 0644]

diff --git a/59/196ad41bf877a4d94ea53cc5f7b38dfcf90bfe b/59/196ad41bf877a4d94ea53cc5f7b38dfcf90bfe
new file mode 100644 (file)
index 0000000..42d3a8e
--- /dev/null
@@ -0,0 +1,78 @@
+Return-Path: <konr@konr.mobi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 64265431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Mar 2011 20:26:18 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id U9WE3GebeF-g for <notmuch@notmuchmail.org>;\r
+       Thu, 24 Mar 2011 20:26:17 -0700 (PDT)\r
+Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com\r
+       [209.85.160.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B8CE0431FB5\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Mar 2011 20:26:17 -0700 (PDT)\r
+Received: by gyh4 with SMTP id 4so33514gyh.26\r
+       for <notmuch@notmuchmail.org>; Thu, 24 Mar 2011 20:26:14 -0700 (PDT)\r
+Received: by 10.150.250.2 with SMTP id x2mr323258ybh.230.1301023574576;\r
+       Thu, 24 Mar 2011 20:26:14 -0700 (PDT)\r
+Received: from localhost.localdomain ([187.106.36.63])\r
+       by mx.google.com with ESMTPS id v15sm384032ybk.21.2011.03.24.20.26.12\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Thu, 24 Mar 2011 20:26:13 -0700 (PDT)\r
+From: Konrad Scorciapino <konr@konr.mobi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] bound mail-parse-charset,\r
+       used by some functions on mm-view.el when there is no charset\r
+       metadata in the html\r
+Date: Fri, 25 Mar 2011 00:25:59 -0300\r
+Message-Id: <1301023559-8097-1-git-send-email-konr@konr.mobi>\r
+X-Mailer: git-send-email 1.7.4.1\r
+Cc: Konrad Scorciapino <konrad@scorciapino.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 25 Mar 2011 03:26:18 -0000\r
+\r
+From: Konrad Scorciapino <konrad@scorciapino.com>\r
+\r
+---\r
+ emacs/notmuch-show.el |    5 +++--\r
+ 1 files changed, 3 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index f3150af..2462ec1 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -312,9 +312,10 @@ current buffer, if possible."\r
+ (defun notmuch-show-insert-part-*/* (msg part content-type nth depth declared-type)\r
+   ;; This handler _must_ succeed - it is the handler of last resort.\r
+   (notmuch-show-insert-part-header nth content-type declared-type (plist-get part :filename))\r
+-  (let ((content (notmuch-show-get-bodypart-content msg part nth)))\r
++  (let* ((content (notmuch-show-get-bodypart-content msg part nth))\r
++         (mail-parse-charset (first (detect-coding-string content))))\r
+     (if content\r
+-      (notmuch-show-mm-display-part-inline msg part content-type content)))\r
++        (notmuch-show-mm-display-part-inline msg part content-type content)))\r
+   t)\r
\r
+ ;; Functions for determining how to handle MIME parts.\r
+-- \r
+1.7.4.1\r
+\r