[PATCH 6/9] CLI: refactor dumping of tags.
[notmuch-archives.git] / b5 / ead669d556201a2cea1cb8ff4982b85128642c
1 Return-Path: <jani@nikula.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 76E3B429E3B\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 09:44:00 -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.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 MNF2T5w9+dhK for <notmuch@notmuchmail.org>;\r
16         Tue, 17 Jan 2012 09:44:00 -0800 (PST)\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
18         [209.85.212.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 B5917429E2E\r
21         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 09:43:59 -0800 (PST)\r
22 Received: by wibhr12 with SMTP id hr12so3678239wib.26\r
23         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 09:43:58 -0800 (PST)\r
24 Received: by 10.180.101.101 with SMTP id ff5mr24960742wib.14.1326822238471;\r
25         Tue, 17 Jan 2012 09:43:58 -0800 (PST)\r
26 Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
27         [80.220.92.23])\r
28         by mx.google.com with ESMTPS id fy5sm46305748wib.7.2012.01.17.09.43.55\r
29         (version=SSLv3 cipher=OTHER); Tue, 17 Jan 2012 09:43:56 -0800 (PST)\r
30 From: Jani Nikula <jani@nikula.org>\r
31 To: Austin Clements <amdragon@MIT.EDU>,\r
32         Andrei Popescu <andreimpopescu@gmail.com>\r
33 Subject: Re: Partial words on notmuch search?\r
34 In-Reply-To: <20120117023431.GF16740@mit.edu>\r
35 References: <20120115220600.GO7037@think.nuvreauspam>\r
36         <877h0sa207.fsf@fester.com>\r
37         <20120116202103.GA14329@think.nuvreauspam>\r
38         <20120117023431.GF16740@mit.edu>\r
39 User-Agent: Notmuch/0.11+76~g1de742d (http://notmuchmail.org) Emacs/23.3.1\r
40         (i686-pc-linux-gnu)\r
41 Date: Tue, 17 Jan 2012 19:43:54 +0200\r
42 Message-ID: <87aa5mkyw5.fsf@nikula.org>\r
43 MIME-Version: 1.0\r
44 Content-Type: text/plain; charset=us-ascii\r
45 Cc: notmuch@notmuchmail.org\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Tue, 17 Jan 2012 17:44:00 -0000\r
59 \r
60 On Mon, 16 Jan 2012 21:34:31 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
61 > Quoth Andrei Popescu on Jan 16 at 10:21 pm:\r
62 > > This is also interesting:\r
63 > > $ notmuch count 'debian'\r
64 > > 65888\r
65 > > $ notmuch count 'dEbian'\r
66 > > 65888\r
67 > > $ notmuch count 'Debian'\r
68 > > 65887\r
69\r
70 > The first two will match stemmed versions of "debian" such as\r
71 > "debian's" and "debianed".  However, starting a term with a capital\r
72 > letter suppresses stemming (because it suggests that it's a name,\r
73 > which you wouldn't want to modify), so your last query matches only\r
74 > the term "debian".  This is probably documented somewhere, though I\r
75 > don't know where.\r
76 \r
77 Interesting. Is this done when adding the terms to the database, or when\r
78 searching? I presume the latter. How much control does notmuch have over\r
79 this?\r
80 \r
81 The assumption that one wouldn't want to have stemming for names is very\r
82 much language dependent. [1]\r
83 \r
84 BR,\r
85 Jani.\r
86 \r
87 \r
88 [1] http://en.wikipedia.org/wiki/Finnish_noun_cases (the same works for\r
89 names as well as nouns)\r