[PATCH 1/9] lib: read "property" terms from messages.
[notmuch-archives.git] / 8f / 0cb54fb4ddf6107504244e69529e1b47119e18
1 Return-Path: <david@tethera.net>\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 6A4F8431FAE\r
6         for <notmuch@notmuchmail.org>; Sat, 20 Jul 2013 07:48:54 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 aLh5a93AxRon for <notmuch@notmuchmail.org>;\r
16         Sat, 20 Jul 2013 07:48:48 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 450D8431FAF\r
21         for <notmuch@notmuchmail.org>; Sat, 20 Jul 2013 07:48:48 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1V0YSj-0003Df-Cy; Sat, 20 Jul 2013 11:48:45 -0300\r
25 Received: (nullmailer pid 2070 invoked by uid 1000); Sat, 20 Jul 2013\r
26         14:48:41 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Suvayu Ali <fatkasuvayu+linux@gmail.com>, Notmuch list\r
29         <notmuch@notmuchmail.org>\r
30 Subject: Re: Aliases in notmuch queries\r
31 In-Reply-To: <20130719123351.GC9369@kuru.dyndns-at-home.com>\r
32 References: <20130716122843.GD10577@kuru.dyndns-at-home.com>\r
33         <871u6vvah8.fsf@zancas.localnet>\r
34         <20130719123351.GC9369@kuru.dyndns-at-home.com>\r
35 User-Agent: Notmuch/0.15.2+223~g3484372 (http://notmuchmail.org) Emacs/24.3.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Sat, 20 Jul 2013 11:48:41 -0300\r
38 Message-ID: <87fvv9e186.fsf@zancas.localnet>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sat, 20 Jul 2013 14:48:54 -0000\r
54 \r
55 Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:\r
56 > I'm not familiar with the notmuch code base at all, but I would like to\r
57 > help getting this feature in.  Do you have any hints where I should\r
58 > start looking?  Is there any background work that I could do?\r
59 \r
60 I think the following pieces are needed:\r
61 \r
62 1) Enable synonyms when opening the database\r
63 \r
64 2) enable synonyms in the query parser\r
65 \r
66 These first two should be covered in the xapian docs\r
67 \r
68 3) load the synonyms from a file.\r
69    - this needs some infrastructure, and some decisions about how to\r
70    handle such configuration info.\r
71 \r
72 4) add the synonyms (using db.add_synonym)\r
73 \r
74 d\r