Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 64265431FB6 for ; Thu, 24 Mar 2011 20:26:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U9WE3GebeF-g for ; Thu, 24 Mar 2011 20:26:17 -0700 (PDT) Received: from mail-gy0-f181.google.com (mail-gy0-f181.google.com [209.85.160.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B8CE0431FB5 for ; Thu, 24 Mar 2011 20:26:17 -0700 (PDT) Received: by gyh4 with SMTP id 4so33514gyh.26 for ; Thu, 24 Mar 2011 20:26:14 -0700 (PDT) Received: by 10.150.250.2 with SMTP id x2mr323258ybh.230.1301023574576; Thu, 24 Mar 2011 20:26:14 -0700 (PDT) Received: from localhost.localdomain ([187.106.36.63]) by mx.google.com with ESMTPS id v15sm384032ybk.21.2011.03.24.20.26.12 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Mar 2011 20:26:13 -0700 (PDT) From: Konrad Scorciapino To: notmuch@notmuchmail.org 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 Message-Id: <1301023559-8097-1-git-send-email-konr@konr.mobi> X-Mailer: git-send-email 1.7.4.1 Cc: Konrad Scorciapino X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 03:26:18 -0000 From: Konrad Scorciapino --- 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