[PATCH 1/2] emacs: add customisation for message indentation width
[notmuch-archives.git] / 2b / 3a49d8af039122870490319229a90a88dd62c3
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 41C4D431FBD\r
6         for <notmuch@notmuchmail.org>; Fri,  5 Feb 2010 15:48:31 -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.778\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.778 tagged_above=-999 required=5\r
12         tests=[AWL=-0.779, 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 5tZvj4Kp8fY5 for <notmuch@notmuchmail.org>;\r
16         Fri,  5 Feb 2010 15:48:28 -0800 (PST)\r
17 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])\r
18         by olra.theworths.org (Postfix) with ESMTP id 372B3431FAE\r
19         for <notmuch@notmuchmail.org>; Fri,  5 Feb 2010 15:48:28 -0800 (PST)\r
20 Received: from list by lo.gmane.org with local (Exim 4.69)\r
21         (envelope-from <gmn-notmuch@m.gmane.org>) id 1NdXuS-0004nN-Si\r
22         for notmuch@notmuchmail.org; Sat, 06 Feb 2010 00:48:24 +0100\r
23 Received: from ip-118-90-138-203.xdsl.xnet.co.nz ([118.90.138.203])\r
24         by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
25         id 1AlnuQ-0007hv-00\r
26         for <notmuch@notmuchmail.org>; Sat, 06 Feb 2010 00:48:24 +0100\r
27 Received: from olly by ip-118-90-138-203.xdsl.xnet.co.nz with local (Gmexim\r
28         0.1 (Debian)) id 1AlnuQ-0007hv-00\r
29         for <notmuch@notmuchmail.org>; Sat, 06 Feb 2010 00:48:24 +0100\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 Date: Fri, 5 Feb 2010 23:48:03 +0000 (UTC)\r
34 Lines: 45\r
35 Message-ID: <slrnhmpbhk.4kj.olly@msgid.survex.com>\r
36 References: <87636bws2o.fsf@servo.finestructure.net>\r
37 X-Complaints-To: usenet@ger.gmane.org\r
38 X-Gmane-NNTP-Posting-Host: ip-118-90-138-203.xdsl.xnet.co.nz\r
39 User-Agent: slrn/pre1.0.0-11 (Linux)\r
40 Sender: news <news@ger.gmane.org>\r
41 Subject: Re: [notmuch] strange behavior of indexing of and searching for\r
42  strings containing '[]'\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Fri, 05 Feb 2010 23:48:31 -0000\r
56 \r
57 On 2010-02-05, Jameson Rollins wrote:\r
58 > Hey, folks.  I've been noticing some strange behavior of notmuch search\r
59 > results for strings containing '[]'.  Here are some searches for some\r
60 > exact strings in messages subjects:\r
61 \r
62 The '[]' is a red herring.  Xapian's TermGenerator and QueryParser classes\r
63 treat these two characters pretty much as if they were spaces.\r
64 \r
65 > servo:~ 0$ notmuch search subject:'emacs paned UI'\r
66 \r
67 Note that the '' is quoting for the shell only here.  So Xapian sees:\r
68 \r
69     subject:emacs paned UI\r
70 \r
71 Assuming you are defaulting to an AND search, that's `emacs in the subject'\r
72 AND `paned anywhere in the indexed text' AND `UI anywhere in the indexed text'.\r
73 \r
74 To specify a quoted phrase you want "" anyway (not ''), so the command\r
75 matching what I think you intended to search for is:\r
76 \r
77     notmuch search 'subject:"emacs paned UI"'\r
78  \r
79 > servo:~ 0$ notmuch search subject:'[notmuch] emacs paned UI'\r
80 \r
81     notmuch search 'subject:"[notmuch] emacs paned UI"'\r
82 \r
83 Which should return identical results to:\r
84 \r
85     notmuch search 'subject:"notmuch emacs paned UI"'\r
86 \r
87 > thread:5f2cb4b108773a39161b33c86e54f7fd  4 mins. ago [1/1] Jameson Rollins;=\r
88 >  [notmuch] loss of duplicate messages (inbox)\r
89 > servo:~ 0$=20\r
90 >\r
91 > Not only did it not turn up the message that *does* match that exact\r
92 > string in it's subject line, it actually turns up a completely different\r
93 > message that doesn't match the search term at all!\r
94 \r
95 It matches the notmuch in the subject, and presumably emacs, paned, and UI\r
96 in the body.\r
97 \r
98 > [snip the rest - the same explanations apply]\r
99 \r
100 Cheers,\r
101     Olly\r
102 \r