1 Return-Path: <markwalters1009@gmail.com>
\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 7160C431FB6
\r
6 for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:43:26 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.201 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,
\r
14 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id fjGrvFC4EDxe for <notmuch@notmuchmail.org>;
\r
18 Sat, 24 Mar 2012 17:43:26 -0700 (PDT)
\r
19 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com
\r
20 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
21 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
22 BF386431FAE for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:43:25 -0700
\r
24 Received: by wgbds10 with SMTP id ds10so2538106wgb.2
\r
25 for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:43:23 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
28 bh=tiykjavKjundulvZT1KRcTrUVbDvYs/Tcjo98Ca0Hm8=;
\r
29 b=tuM9CQlp7efsyqYOJweib1piAvueXYyn18Gdbb7FeS0+K4KN1CFySTLYmIda35rqrT
\r
30 zcPVYzzDiIrkAcTMFSIUNcbNuNFavYK7iTBANiTcPW0pCDca/ASg61QedKvIJ892HiY5
\r
31 9Kfl4xEtd77FE7fpuPY9h07FMZn20YWkTbXShYhNwWi43qjW1mey+dS2+Ge3yPNDCeRW
\r
32 VNjgma5qQ0NPQoQiwYVYsV5T0FvcZ/dnkAJZC1chLm14X84vj7et5OCl1ZrukqM1FPKn
\r
33 DNW2ZECO/kTHeTsaS6rZ4Nm/WlZgwPDIb2pMpRwVA9/A3ZhEZGx5O6iNLkq2SI5puoCe
\r
35 Received: by 10.180.107.101 with SMTP id hb5mr9237572wib.3.1332636203015;
\r
36 Sat, 24 Mar 2012 17:43:23 -0700 (PDT)
\r
37 Received: from localhost (94-192-233-223.zone6.bethere.co.uk.
\r
38 [94.192.233.223]) by mx.google.com with ESMTPS id
\r
39 ff9sm27343432wib.2.2012.03.24.17.43.21 (version=TLSv1/SSLv3 cipher=OTHER);
\r
40 Sat, 24 Mar 2012 17:43:22 -0700 (PDT)
\r
41 From: Mark Walters <markwalters1009@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH] emacs: content-type comparison should be case insensitive.
\r
44 Date: Sun, 25 Mar 2012 00:43:28 +0000
\r
45 Message-Id: <1332636208-9784-1-git-send-email-markwalters1009@gmail.com>
\r
46 X-Mailer: git-send-email 1.7.9.1
\r
48 <CAMoJFUuGS_y4Sqtug5Ohdic3M43_fexWOt7cAw-ebuZ_SVUnjQ@mail.gmail.com>
\r
50 <CAMoJFUuGS_y4Sqtug5Ohdic3M43_fexWOt7cAw-ebuZ_SVUnjQ@mail.gmail.com>
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Sun, 25 Mar 2012 00:43:26 -0000
\r
65 The function notmuch-match-content-type was comparing content types
\r
66 case sensitively. Fix it so it tests case insensitively.
\r
68 This fixes a bug where emacs would not include any body when replying
\r
69 to a message with content-type TEXT/PLAIN.
\r
71 emacs/notmuch-lib.el | 5 +++--
\r
72 1 files changed, 3 insertions(+), 2 deletions(-)
\r
74 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
\r
75 index c146748..a754de7 100644
\r
76 --- a/emacs/notmuch-lib.el
\r
77 +++ b/emacs/notmuch-lib.el
\r
78 @@ -185,8 +185,9 @@ the user hasn't set this variable with the old or new value."
\r
79 (st2 (notmuch-split-content-type t2)))
\r
80 (if (or (string= (cadr st1) "*")
\r
81 (string= (cadr st2) "*"))
\r
82 - (string= (car st1) (car st2))
\r
83 - (string= t1 t2))))
\r
84 + ;; Comparison of content types should be case insensitive.
\r
85 + (string= (downcase (car st1)) (downcase (car st2)))
\r
86 + (string= (downcase t1) (downcase t2)))))
\r
88 (defvar notmuch-multipart/alternative-discouraged
\r