Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / bf / 06aabef8b63af2b310e0e35baf387ddd2e5327
1 Return-Path: <awg@xvx.ca>\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 4872B431FAF\r
6         for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:19:53 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 YSaoMybJFYLj for <notmuch@notmuchmail.org>;\r
16         Sat, 24 Mar 2012 17:19:52 -0700 (PDT)\r
17 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com\r
18         [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 6D704431FAE\r
21         for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:19:52 -0700 (PDT)\r
22 Received: by lbok6 with SMTP id k6so3500947lbo.26\r
23         for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 17:19:50 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=mime-version:sender:x-originating-ip:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding:x-gm-message-state;\r
29         bh=D5vk/FBgLFeABN9KA+99JdZIktiyrmCE3V51VbKTlnU=;\r
30         b=Xj/skjvABoWZw+PIlkbiVfsIvuU/YBK+NGM3WwCUe5EqOFAWTkvlpoyx7Z+NtYeDXh\r
31         OqK9OWexK1qMjU0sE3A5nyv/Hb2gnUpcincripunIbM+yCYCzu1/JYtmlBbqgWy6vYep\r
32         st82IdIdt1jdsGQibRpjHsb6UQZCa+deD7c19gO5nQrBJmxFkJrjq1BuK9v0+JXAbpl2\r
33         m8R+rVvN+oTWQQq334v3cE4UrnHfN68I7G5WgEsYlB+CJZ/XDLHYY6iTHwot4byWAgzz\r
34         YOoPnjXJEacUP8n3xClEKw9+0SOsNgnC8QKXXchtSwO7kXjQ0w91v8MairV468gtHxfu\r
35         C7UQ==\r
36 MIME-Version: 1.0\r
37 Received: by 10.152.131.3 with SMTP id oi3mr13843270lab.35.1332634790710; Sat,\r
38         24 Mar 2012 17:19:50 -0700 (PDT)\r
39 Sender: awg@xvx.ca\r
40 Received: by 10.112.29.137 with HTTP; Sat, 24 Mar 2012 17:19:50 -0700 (PDT)\r
41 X-Originating-IP: [96.52.216.56]\r
42 In-Reply-To: <87d3814qkv.fsf@qmul.ac.uk>\r
43 References: <87d3814qkv.fsf@qmul.ac.uk>\r
44 Date: Sat, 24 Mar 2012 18:19:50 -0600\r
45 X-Google-Sender-Auth: r2zOAIQHbCM95wTA2UMJeqmu-gU\r
46 Message-ID:\r
47  <CAMoJFUuGS_y4Sqtug5Ohdic3M43_fexWOt7cAw-ebuZ_SVUnjQ@mail.gmail.com>\r
48 Subject: Re: Reply code with TEXT/PLAIN\r
49 From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
50 To: Mark Walters <markwalters1009@gmail.com>\r
51 Content-Type: text/plain; charset=ISO-8859-1\r
52 Content-Transfer-Encoding: quoted-printable\r
53 X-Gm-Message-State:\r
54  ALoCoQlGPcIKQ1WumrnTKL/KtcThiaYIG32f1c+Ms/4rJwCNnCNXA5yNgp7wTn3o5X82fymsWvJJ\r
55 Cc: notmuch@notmuchmail.org\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Sun, 25 Mar 2012 00:19:53 -0000\r
69 \r
70 Hi Mark,\r
71 \r
72 On Sat, Mar 24, 2012 at 15:49, Mark Walters <markwalters1009@gmail.com> wro=\r
73 te:\r
74 > I am not certain if this is a bug or a request to work around broken\r
75 > mailers. I tried replying to a message today (with recent git) and got\r
76 > an empty message. I looked at the json output for reply and it contains\r
77 > the message but the content type is TEXT/PLAIN rather than\r
78 > text/plain.\r
79 >\r
80 > This seems to mean it doesn't match in notmuch-match-content-type\r
81 > (notmuch-lib.el) called from notmuch-mua-get-quotable-parts (in\r
82 > notmuch-mua.el); and so does not get included.\r
83 >\r
84 > Making the match case-insensitive `fixed' the problem.\r
85 >\r
86 > I don't know whether content-types are allowed =A0to be upper-case but I\r
87 > seem to have several mails where they are. I am also not sure whether\r
88 > the correct fix is in the emacs code, or in the cli reply format\r
89 > (i.e. perhaps the reply format should lower-case the content-type).\r
90 \r
91 A bit of Googling indicates that MIME types should be case insensitive\r
92 (i.e. TEXT/PLAIN should match text/plain). Given this, I think it\r
93 makes sense to change the emacs function regardless of whether it\r
94 makes sense for the CLI to output them in lower-case.\r
95 notmuch-match-content-type was put in notmuch-lib.el instead of in\r
96 notmuch-mua.el because it was thought that it might become useful\r
97 elsewhere later, so having it compare mime types correctly ensures\r
98 that future uses don't need to sanitize input to it.\r
99 \r
100 Since you've already made the change for yourself, do you want to send a pa=\r
101 tch?\r
102 \r
103 Cheers.\r