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 CC550429E2E for ; Thu, 5 Jan 2012 07:04:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.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 SsjhOp8bzcyc for ; Thu, 5 Jan 2012 07:04:28 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id EEAAF429E27 for ; Thu, 5 Jan 2012 07:04:27 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 57EBF6A0026; Thu, 5 Jan 2012 16:04:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1325775866; bh=AGDzphVh/EV5pnkJAPXUi9fWWG3a9AWG3Sa15Zjfkm4=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=aM1/FX6SZfLR3qxXKYU0JvBmE6SK6sduesphVZn3aGzKPj7XT6XGXtcUKR75+Yr0j 3maoYkSI+XcLaHt1MNkUrbiMHjZhf8efiPxOT55hn+eW7oSJX2ejByrDszXRcVCdpW Z6tzuyBZVsh+dyyzHQ7fPxjD4WRHQoJwL7q1E/rw= From: Thomas Jost To: boyska , notmuch@notmuchmail.org Subject: Re: Info about notmuch database In-Reply-To: <4e39a92bc2136f12ae6924e8878d5d1a@logorroici.org> References: <4e39a92bc2136f12ae6924e8878d5d1a@logorroici.org> User-Agent: Notmuch/0.10.2+178~g8a0a6dd (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-unknown-linux-gnu) Date: Thu, 05 Jan 2012 16:04:22 +0100 Message-ID: <87fwfup4w9.fsf@thor.loria.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Thu, 05 Jan 2012 15:04:28 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 04 Jan 2012 15:49:19 +0000, boyska 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=20 > addresses > in a xapian database (you can think of it as little brother database[1]=20 > 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=20 > "chaotic", > but probably I am just missing the point. >=20 > So, here's the question: how is the db "structured"? is there any > documentation to look at? >=20 > [1] http://www.spinnaker.de/lbdb/ >=20 > --=20 > 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, =2D-=20 Thomas/Schnouki --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPBbv2AAoJEMPdciX+bh5IXpcIAJO006W1G0d9VA75sQzkdPBt 9PEEIq/d1s9vYseyfCjGHOBeLi8+fSVy9S3bDLp/dFVCZIlmp4DuPcsXFs9EUN3i quO5LIXbny7vNY2MlJq9DegD6ZP9Hkpk5wZ4I2w4QZqtSQdpVOO/DORX9ASjZTmF PRclg6cVcO89ivvrEVCLHTPvPPejN4d+lv3ELASilN3TYtb3nbvTv5DkkqQVoY0D cTW1hKS5Eds93mTL7pkyCoSU5NTt41UYVVaNj4dir/0TZMDcFir71NCW3wZAONyo 7LmX5PtNQPWhiCf689jGmw5nkwk6aLzLt7SYBWyO4oVHJ7x6P8eft7+JS+ATYOY= =j3fF -----END PGP SIGNATURE----- --=-=-=--