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 3BB56431FBC for ; Tue, 16 Feb 2010 10:51:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.339 X-Spam-Level: X-Spam-Status: No, score=-0.339 tagged_above=-999 required=5 tests=[AWL=-0.340, BAYES_50=0.001] autolearn=ham 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 1JPYCWrE1W2z for ; Tue, 16 Feb 2010 10:51:13 -0800 (PST) Received: from jameswestby.net (jameswestby.net [89.145.97.141]) by olra.theworths.org (Postfix) with ESMTP id 96C7F431FAE for ; Tue, 16 Feb 2010 10:51:13 -0800 (PST) Received: from cpc4-aztw22-2-0-cust59.aztw.cable.virginmedia.com ([94.169.116.60] helo=flash) by jameswestby.net with esmtpa (Exim 4.69) (envelope-from ) id 1NhSVs-0001mu-6t; Tue, 16 Feb 2010 18:51:12 +0000 Received: by flash (Postfix, from userid 1000) id B7980609441; Tue, 16 Feb 2010 18:51:00 +0000 (GMT) From: James Westby To: notmuch@notmuchmail.org Date: Tue, 16 Feb 2010 18:51:00 +0000 Message-Id: <1266346260-3858-1-git-send-email-jw+debian@jameswestby.net> X-Mailer: git-send-email 1.6.6.1 Subject: [notmuch] [PATCH] Look for text/html content types ignoring case 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: Tue, 16 Feb 2010 18:51:14 -0000 Some people send html parts as text/HTML or similar, so do a case-sensitive comparison when checking for html parts. --- notmuch.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 0f4ea10..b69c334 100644 --- a/notmuch.el +++ b/notmuch.el @@ -736,7 +736,7 @@ is what to put on the button." (setq mime-type (car (split-string (buffer-substring (match-beginning 1) (match-end 1)))))) - (if (equal mime-type "text/html") + (if (equal (downcase mime-type) "text/html") (let ((filename (notmuch-show-get-filename))) (with-temp-buffer (insert-file-contents filename nil nil nil t) -- 1.6.6.1