[PATCH v3 4/7] Add internal functions to search for alternate doc types
[notmuch-archives.git] / aa / 8dcd63af318d07961639bb163a197afcec4e7b
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 A4E5B431FAF\r
6         for <notmuch@notmuchmail.org>; Thu, 18 Jul 2013 14:12:35 -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 KZ1trQtzG0-U for <notmuch@notmuchmail.org>;\r
16         Thu, 18 Jul 2013 14:12:27 -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 A5913431FAE\r
21         for <notmuch@notmuchmail.org>; Thu, 18 Jul 2013 14:12:27 -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 1UzvUt-0002pA-E7; Thu, 18 Jul 2013 18:12:23 -0300\r
25 Received: (nullmailer pid 1200 invoked by uid 1000); Thu, 18 Jul 2013\r
26         21:12:19 -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: <20130716122843.GD10577@kuru.dyndns-at-home.com>\r
32 References: <20130716122843.GD10577@kuru.dyndns-at-home.com>\r
33 User-Agent: Notmuch/0.15.2+217~gb60fb33 (http://notmuchmail.org) Emacs/24.3.1\r
34         (x86_64-pc-linux-gnu)\r
35 Date: Thu, 18 Jul 2013 18:12:19 -0300\r
36 Message-ID: <871u6vvah8.fsf@zancas.localnet>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Thu, 18 Jul 2013 21:12:35 -0000\r
52 \r
53 Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:\r
54 \r
55 >\r
56 > Often when searching for messages from these collaborators, I realise I\r
57 > cannot recall their real names (or cannot spell it correctly).  It would\r
58 > be great if notmuch had a facility to map nicknames to real names;\r
59 > something like what git does with .mailmap.\r
60 >\r
61 > Does something like this exist?  If not, is it feasible?  I think it\r
62 > would be a great addition.\r
63 \r
64 It might be possible to use xapian synonyms\r
65 \r
66    http://xapian.org/docs/synonyms.html\r
67 \r
68 to do this.\r
69 \r
70 The basic synonym enabling doesn't look that hard, I think the fiddly\r
71 bits would be in loading up the synonyms at right time.  We'd have to\r
72 think about how to sensibly store/backup this information so that\r
73 bindings users could have access to it.\r
74 \r
75 d\r