From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6A4F8431FAE for ; Sat, 20 Jul 2013 07:48:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aLh5a93AxRon for ; Sat, 20 Jul 2013 07:48:48 -0700 (PDT) Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 450D8431FAF for ; Sat, 20 Jul 2013 07:48:48 -0700 (PDT) Received: from remotemail by yantan.tethera.net with local (Exim 4.80) (envelope-from ) id 1V0YSj-0003Df-Cy; Sat, 20 Jul 2013 11:48:45 -0300 Received: (nullmailer pid 2070 invoked by uid 1000); Sat, 20 Jul 2013 14:48:41 -0000 From: David Bremner To: Suvayu Ali , Notmuch list Subject: Re: Aliases in notmuch queries In-Reply-To: <20130719123351.GC9369@kuru.dyndns-at-home.com> References: <20130716122843.GD10577@kuru.dyndns-at-home.com> <871u6vvah8.fsf@zancas.localnet> <20130719123351.GC9369@kuru.dyndns-at-home.com> User-Agent: Notmuch/0.15.2+223~g3484372 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Sat, 20 Jul 2013 11:48:41 -0300 Message-ID: <87fvv9e186.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 14:48:54 -0000 Suvayu Ali writes: > I'm not familiar with the notmuch code base at all, but I would like to > help getting this feature in. Do you have any hints where I should > start looking? Is there any background work that I could do? I think the following pieces are needed: 1) Enable synonyms when opening the database 2) enable synonyms in the query parser These first two should be covered in the xapian docs 3) load the synonyms from a file. - this needs some infrastructure, and some decisions about how to handle such configuration info. 4) add the synonyms (using db.add_synonym) d