Re: [PATCH v2] emacs: Improved compatibility for window-body-width in Emacs < 24
[notmuch-archives.git] / 08 / 9677793a1b8d775cffe8f8f4ea111e7e274bee
1 Return-Path: <dmitry.kurochkin@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 1B4B74196F4\r
6         for <notmuch@notmuchmail.org>; Fri,  2 Jul 2010 06:05:05 -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: -1.999\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id NxB5m-Dq4tta for <notmuch@notmuchmail.org>;\r
17         Fri,  2 Jul 2010 06:04:54 -0700 (PDT)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        by olra.theworths.org (Postfix) with ESMTP id EF9BA4196F3       for\r
20  <notmuch@notmuchmail.org>; Fri,  2 Jul 2010 06:04:53 -0700 (PDT)\r
21 Received: by wwb18 with SMTP id 18so370778wwb.2\r
22         for <notmuch@notmuchmail.org>; Fri, 02 Jul 2010 06:04:52 -0700 (PDT)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
24         h=domainkey-signature:received:received:from:to:subject:in-reply-to\r
25         :references:user-agent:date:message-id:mime-version:content-type;\r
26         bh=2Q3gpqSOTuthPTeXSWsKdBWM/9wkzyCdPiVPQYH34d4=;\r
27         b=DEp54sF9rZApc9vOVs4efMVu2AQ1TmOUXmDjHU8tmSCiuKK4m4gr3R+rzMicp11fTL\r
28         ff6JKU5UK67j7CBNNM6rQsjuwhDt0ANGQC7df/hcpISJZRERvrYuy+v4A7un8GlezyWI\r
29         eI6ZBAHdo6pK8zpQnXKb8022StLNJKD/0K4SM=\r
30 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
31         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
32         :mime-version:content-type;\r
33         b=rHrcuKTUy/H2Lgh9ZqbMdKwRgUzwaUX5liQYEb93L8+9hFH9KQ9xnkUoF4Lu/03xCF\r
34         tkdWdB4Lb2FzYSq0dmKtjCU8mPVYmyLrBOAJGYyMOKv+zUuNJu/oGwM0J8iCJSiCeGIL\r
35         wpgRDQ9RdMh52PWWSFNMxZjvbcyRiseh9n+/M=\r
36 Received: by 10.213.33.134 with SMTP id h6mr641602ebd.87.1278075892394;\r
37         Fri, 02 Jul 2010 06:04:52 -0700 (PDT)\r
38 Received: from localhost ([91.144.186.21])\r
39         by mx.google.com with ESMTPS id a48sm5360823eei.18.2010.07.02.06.04.47\r
40         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
41         Fri, 02 Jul 2010 06:04:48 -0700 (PDT)\r
42 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
43 To: Olly Betts <olly@survex.com>, notmuch@notmuchmail.org\r
44 Subject: Re: [PATCH 2/5] Add quotes around id:"message-id" queries.\r
45 In-Reply-To: <slrni2qrg7.chp.olly@msgid.survex.com>\r
46 References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
47         <1278000507-22290-3-git-send-email-dmitry.kurochkin@gmail.com>\r
48         <slrni2qrg7.chp.olly@msgid.survex.com>\r
49 User-Agent: Notmuch/0.3.1-61-ge828543 (http://notmuchmail.org) Emacs/23.2.1\r
50         (x86_64-pc-linux-gnu)\r
51 Date: Fri, 02 Jul 2010 17:04:46 +0400\r
52 Message-ID: <87bpaq6nm9.fsf@gmail.com>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain; charset=us-ascii\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Fri, 02 Jul 2010 13:05:05 -0000\r
68 \r
69 On Fri, 2 Jul 2010 04:41:43 +0000 (UTC), Olly Betts <olly@survex.com> wrote:\r
70 > On 2010-07-01, Dmitry Kurochkin wrote:\r
71 > > -  (concat "id:" (notmuch-show-get-prop :id props)))\r
72 > > +  (concat "id:\"" (notmuch-show-get-prop :id props) "\""))\r
73\r
74 > This is probably a good idea (the ".." example is arguably a Xapian bug so\r
75 > that should be fixed soon, but you find all sorts of junk in message-ids.\r
76\r
77 \r
78 If I comment out add_valuerangeprocessor call in\r
79 notmuch_database_open(), ids with .. are matched fine with no quotes.\r
80 \r
81 So it seems that xapian uses the ValueRangeProcessor for all terms\r
82 while it should be used for one value parsing only. Is this correct?\r
83 \r
84 Is there a xapian bug for this?\r
85 \r
86 > However, the quoting feature this relies on was added in Xapian 1.0.18 (and\r
87 > 1.1.4), and with older versions this will break for *all* message-ids (even\r
88 > those which currently work).\r
89\r
90 \r
91 Indeed.\r
92 \r
93 > Also, if you're going to quote the message-id, you should escaping any "\r
94 > characters in the message-id (by doubling them).\r
95\r
96 \r
97 Right.\r
98 \r
99 I have found a xapian bug #128 "Allow queryparser to treat some prefixes\r
100 as literal text". Seems to be just what we need here. Perhaps instead of\r
101 quoting in emacs client, we can wait for the value range parsing fix\r
102 (can be fixed in minor release?) and use #128 when it is available. IMHO\r
103 should be good enought in most cases. What do you think?\r
104 \r
105 Regards,\r
106   Dmitry\r
107 \r
108 > Cheers,\r
109 >     Olly\r
110\r
111 > _______________________________________________\r
112 > notmuch mailing list\r
113 > notmuch@notmuchmail.org\r
114 > http://notmuchmail.org/mailman/listinfo/notmuch\r