On Wed, 04 Jan 2012 15:49:19 +0000, boyska <piutto...@logorroici.org> wrote: > Hello! > I like notmuch a lot, so I'm writing a (conceptually) similar software > about addressbook: it will scan all your emails, storing email > addresses > in a xapian database (you can think of it as little brother database[1] > on > steroids) > The part that I'd like to re-implement is "notmuch new": it seems that > in the xapian db there is not only informations about each mail, but > also the mtime of each directory. My impression is this being > "chaotic", > but probably I am just missing the point. > > So, here's the question: how is the db "structured"? is there any > documentation to look at? > > [1] http://www.spinnaker.de/lbdb/ > > -- > boyska > GPG: 0x520CE393
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. Also: why Xapian? I'm already using something similar I wrote with Python, storing everything in a dictionary, using Pickle to save that to disk: 162 lines of code and 45 kb of data are enough to store my addressbook and have completion in Emacs... Regards, -- Thomas/Schnouki
pgpLQ0UslCmY9.pgp
Description: PGP signature
_______________________________________________ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch