On Wed, 04 Jan 2012 15:49:19 +0000, boyska <piuttosto at 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120105/8ad2890b/attachment-0001.pgp>