Re: [notmuch] Introducing notmuchsync

Subject: Re: [notmuch] Introducing notmuchsync

Date: Mon, 01 Mar 2010 21:20:48 +0100

To: Ben Gamari

Cc: notmuch

From: Michal Sojka


On Mon, 01 Mar 2010 13:43:24 -0500, Ben Gamari <bgamari@gmail.com> 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

Thread: