Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 31598407A33 for ; Sat, 7 Jan 2012 03:49:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.9 X-Spam-Level: X-Spam-Status: No, score=0.9 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_RELAY_MUA_TO_MX=1] 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 Fn5GOknwREig for ; Sat, 7 Jan 2012 03:49:02 -0800 (PST) Received: from confino.investici.org (investici.nine.ch [217.150.252.179]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E87C5407A1D for ; Sat, 7 Jan 2012 03:49:01 -0800 (PST) Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated sender: piuttosto@logorroici.org) by localhost (Postfix) with ESMTPSA id 58964C865B for ; Sat, 7 Jan 2012 11:48:58 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org 58964C865B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=logorroici.org; s=stigmate; t=1325936939; bh=n+yOiSuEs/qwz8mRPUXTO4VVNFhaHP0P7BA+Mhn7HgM=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=oj2JrO1NFnJJi3JzpwM7yIDct4sCAM2W6/HkQuMObys+6qIMOaejLjIns1vB+/CK/ b6NU1XvU030SLkXuZlztL8xtPqmFe62amaO7TKVUtAF0/jVjzZXGN6tBdy8AnAI5o0 SGV+HcZgM81GsDffig7nV780SGtQ9/VYnPFOjdcM= Date: Sat, 7 Jan 2012 12:48:57 +0100 From: boyska To: notmuch@notmuchmail.org Subject: Re: Info about notmuch database Message-ID: <20120107114857.GA5670@edge> Mail-Followup-To: notmuch@notmuchmail.org References: <4e39a92bc2136f12ae6924e8878d5d1a@logorroici.org> <87fwfup4w9.fsf@thor.loria.fr> <20120105153748.GA13888@edge> <87boqip0no.fsf@thor.loria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87boqip0no.fsf@thor.loria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) 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, 07 Jan 2012 11:49:03 -0000 On Thu, Jan 05, 2012 at 05:35:55PM +0100, Thomas Jost wrote: > On Thu, 5 Jan 2012 16:38:07 +0100, boyska wrote: > > > There's a description of the DB "schema" in lib/database.cc in the > > > notmuch source code. But you may also consider just using libnotmuch > > > instead, if that's enough for what you want to do. > > > > thanks, found it, much clearer now. > > But I really can't understand why not just putting these things on a > > separate file :) atomic consistency issues? > > I doubt it's for consistency (see commit 824dad76), more likely it's > because people should use libnotmuch rather than directly hacking into > the DB ;) Fine; I'll probably keep the whole output of "find" as the data of a SINGLE entry, instead of one entry for directory. This just seems easier to me. > Do you plan to use this addressbook with notmuch-address.el, or will it > be a standalone program? It will be a standalone program, meant to be used with mutt-query [1]. So just call "notmany thomas" on commandline, and your email will appear. I don't use emacs, so I won't write an emacs tool (nor I know how notmuch-address.el works), but I am trying to keep library and UI separate, so writing a wrapper suitable for emacs is possible, and probably very easy. [1] http://wiki.mutt.org/?QueryCommand