Re: [PATCH] RFC: impliment gzipped output for notmuch dump
[notmuch-archives.git] / 6e / f4bc245ae83b0c7fbd64a106ef6f56199f5d02
1 Return-Path: <james@jameswestby.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 3BB56431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 10:51:14 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.339\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.339 tagged_above=-999 required=5\r
12         tests=[AWL=-0.340, BAYES_50=0.001] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 1JPYCWrE1W2z for <notmuch@notmuchmail.org>;\r
16         Tue, 16 Feb 2010 10:51:13 -0800 (PST)\r
17 Received: from jameswestby.net (jameswestby.net [89.145.97.141])\r
18         by olra.theworths.org (Postfix) with ESMTP id 96C7F431FAE\r
19         for <notmuch@notmuchmail.org>; Tue, 16 Feb 2010 10:51:13 -0800 (PST)\r
20 Received: from cpc4-aztw22-2-0-cust59.aztw.cable.virginmedia.com\r
21         ([94.169.116.60] helo=flash)\r
22         by jameswestby.net with esmtpa (Exim 4.69)\r
23         (envelope-from <james@jameswestby.net>)\r
24         id 1NhSVs-0001mu-6t; Tue, 16 Feb 2010 18:51:12 +0000\r
25 Received: by flash (Postfix, from userid 1000)\r
26         id B7980609441; Tue, 16 Feb 2010 18:51:00 +0000 (GMT)\r
27 From: James Westby <jw+debian@jameswestby.net>\r
28 To: notmuch@notmuchmail.org\r
29 Date: Tue, 16 Feb 2010 18:51:00 +0000\r
30 Message-Id: <1266346260-3858-1-git-send-email-jw+debian@jameswestby.net>\r
31 X-Mailer: git-send-email 1.6.6.1\r
32 Subject: [notmuch] [PATCH] Look for text/html content types ignoring case\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.13\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37         <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Tue, 16 Feb 2010 18:51:14 -0000\r
46 \r
47 Some people send html parts as text/HTML or similar, so do a\r
48 case-sensitive comparison when checking for html parts.\r
49 ---\r
50  notmuch.el |    2 +-\r
51  1 files changed, 1 insertions(+), 1 deletions(-)\r
52 \r
53 diff --git a/notmuch.el b/notmuch.el\r
54 index 0f4ea10..b69c334 100644\r
55 --- a/notmuch.el\r
56 +++ b/notmuch.el\r
57 @@ -736,7 +736,7 @@ is what to put on the button."\r
58              (setq mime-type (car (split-string (buffer-substring \r
59                                                  (match-beginning 1) (match-end 1))))))\r
60  \r
61 -          (if (equal mime-type "text/html")\r
62 +          (if (equal (downcase mime-type) "text/html")\r
63                (let ((filename (notmuch-show-get-filename)))\r
64                  (with-temp-buffer\r
65                    (insert-file-contents filename nil nil nil t)\r
66 -- \r
67 1.6.6.1\r
68 \r