[PATCH WIP v2 0/5] emacs: show: redesign unread/read logic
[notmuch-archives.git] / bd / f534724740cc69ececfcc0a19eb4aecdc82c8e
1 Return-Path: <gmn-notmuch@m.gmane.org>\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 B79FA4196F4\r
6         for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 21:42:06 -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.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] 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 le0JTDBM38L0 for <notmuch@notmuchmail.org>;\r
16         Thu,  1 Jul 2010 21:41:56 -0700 (PDT)\r
17 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])\r
18         by olra.theworths.org (Postfix) with ESMTP id D93134196F3\r
19         for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 21:41:55 -0700 (PDT)\r
20 Received: from list by lo.gmane.org with local (Exim 4.69)\r
21         (envelope-from <gmn-notmuch@m.gmane.org>) id 1OUY4V-0003pB-Jh\r
22         for notmuch@notmuchmail.org; Fri, 02 Jul 2010 06:41:51 +0200\r
23 Received: from ip-118-90-137-151.xdsl.xnet.co.nz ([118.90.137.151])\r
24         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
25         id 1AlnuQ-0007hv-00\r
26         for <notmuch@notmuchmail.org>; Fri, 02 Jul 2010 06:41:51 +0200\r
27 Received: from olly by ip-118-90-137-151.xdsl.xnet.co.nz with local (Gmexim\r
28         0.1 (Debian)) id 1AlnuQ-0007hv-00\r
29         for <notmuch@notmuchmail.org>; Fri, 02 Jul 2010 06:41:51 +0200\r
30 X-Injected-Via-Gmane: http://gmane.org/\r
31 To: notmuch@notmuchmail.org\r
32 From: Olly Betts <olly@survex.com>\r
33 Subject: Re: [PATCH 2/5] Add quotes around id:"message-id" queries.\r
34 Date: Fri, 2 Jul 2010 04:41:43 +0000 (UTC)\r
35 Lines: 16\r
36 Message-ID: <slrni2qrg7.chp.olly@msgid.survex.com>\r
37 References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
38         <1278000507-22290-3-git-send-email-dmitry.kurochkin@gmail.com>\r
39 X-Complaints-To: usenet@dough.gmane.org\r
40 X-Gmane-NNTP-Posting-Host: ip-118-90-137-151.xdsl.xnet.co.nz\r
41 User-Agent: slrn/pre1.0.0-11 (Linux)\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Fri, 02 Jul 2010 04:42:06 -0000\r
55 \r
56 On 2010-07-01, Dmitry Kurochkin wrote:\r
57 > -  (concat "id:" (notmuch-show-get-prop :id props)))\r
58 > +  (concat "id:\"" (notmuch-show-get-prop :id props) "\""))\r
59 \r
60 This is probably a good idea (the ".." example is arguably a Xapian bug so\r
61 that should be fixed soon, but you find all sorts of junk in message-ids.\r
62 \r
63 However, the quoting feature this relies on was added in Xapian 1.0.18 (and\r
64 1.1.4), and with older versions this will break for *all* message-ids (even\r
65 those which currently work).\r
66 \r
67 Also, if you're going to quote the message-id, you should escaping any "\r
68 characters in the message-id (by doubling them).\r
69 \r
70 Cheers,\r
71     Olly\r
72 \r