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 87562431FC3 for ; Mon, 1 Mar 2010 12:21:00 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.297 X-Spam-Level: X-Spam-Status: No, score=-1.297 tagged_above=-999 required=5 tests=[AWL=-0.557, BAYES_20=-0.74] autolearn=ham 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 4UHTlOuGWVPu for ; Mon, 1 Mar 2010 12:20:59 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 5EB2A431FBD for ; Mon, 1 Mar 2010 12:20:59 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 6A74319F33CE; Mon, 1 Mar 2010 21:20:50 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id bovYrnpOECdf; Mon, 1 Mar 2010 21:20:49 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 3AE8019F33C7; Mon, 1 Mar 2010 21:20:49 +0100 (CET) Received: from steelpick.localdomain (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id D7764FA003; Mon, 1 Mar 2010 21:20:48 +0100 (CET) Received: from wsh by steelpick.localdomain with local (Exim 4.71) (envelope-from ) id 1NmC6i-0005tU-Hz; Mon, 01 Mar 2010 21:20:48 +0100 From: Michal Sojka To: Ben Gamari In-Reply-To: <1267468550-sup-8956@ben-laptop> References: <87pr57jvkz.fsf@SSpaeth.de> <87wry2wl7p.fsf@yoom.home.cworth.org> <87ljecmnbd.fsf@steelpick.localdomain> <1267459947-sup-6640@ben-laptop> <87bpf82c5c.fsf@steelpick.localdomain> <1267468550-sup-8956@ben-laptop> Date: Mon, 01 Mar 2010 21:20:48 +0100 Message-ID: <878wab3ian.fsf@steelpick.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch Subject: Re: Introducing notmuchsync 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: Mon, 01 Mar 2010 20:21:00 -0000 On Mon, 01 Mar 2010 13:43:24 -0500, Ben Gamari wrote: > Excerpts from Michal Sojka's message of Mon Mar 01 12:18:55 -0500 2010: > > > How do you propose that the backends keep track of what mail has been > > > indexed? > > > > For example by using Xapian metadata: > > notmuch->xapian_db->set_metadata ("git-head", sha1); > > However, this means that the backend would need to know about the > indexing database, which seems to me like a implementation detail that > should be hidden from the backend (perhaps? Maybe not, I suppose). I guess this all > depends upon how much we want to abstract out the backends. I do not see why the databse should be hidded. It will be easier to implement if the backend knows about it. Also, I'm not sure whether this should be called "backend". From certain point of view Xapian can be considered as backend and mail store implemetation will be a frontend. - Michal