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 C1B334048F5 for ; Mon, 15 Mar 2010 09:20:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.266 X-Spam-Level: X-Spam-Status: No, score=-1.266 tagged_above=-999 required=5 tests=[AWL=-0.156, BAYES_05=-1.11] 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 FMTjfdFOFLv5 for ; Mon, 15 Mar 2010 09:20:28 -0700 (PDT) Received: from homiemail-a23.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by olra.theworths.org (Postfix) with ESMTP id 9E7B5454968 for ; Mon, 15 Mar 2010 09:20:28 -0700 (PDT) Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a23.g.dreamhost.com (Postfix) with ESMTPA id 856584B006F; Mon, 15 Mar 2010 09:20:26 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Mon, 15 Mar 2010 17:20:24 +0100 From: "Sebastian Spaeth" To: Ingmar Vanhassel , notmuch@notmuchmail.org In-Reply-To: <874okltwgk.fsf@SSpaeth.de> References: <1268347072-2050-1-git-send-email-bgamari.foss@gmail.com> <1268401656-12827-1-git-send-email-ingmar@exherbo.org> <874okltwgk.fsf@SSpaeth.de> Date: Mon, 15 Mar 2010 17:20:23 +0100 Message-ID: <87r5nlimk8.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] (no subject) 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, 15 Mar 2010 16:20:29 -0000 On Fri, 12 Mar 2010 16:02:03 +0100, "Sebastian Spaeth" wrote: > On Fri, 12 Mar 2010 14:47:33 +0100, Ingmar Vanhassel wrote: > Your patchset compiles fine and installs /usr/local/bin/notmuch and > /usr/local/lib/libnotmuch.so.1. However, it doesn't find it when running > and exits saying libnotmuch.so not found. DOH, a simple "sudo ldconfig" fixed the issue on a stock Ubuntu on my box. Your patch series works fine. I just tested the shared lib by creating a small python binding to libnotmuch which can be found here: http://bitbucket.org/spaetz/cnotmuch (It basically does not bind many things yet :-), but it demos that it works in general). This is my sample session: >>>from cnotmuch import notmuch >>>db = notmuch.Database() >>>db.get_path() '/home/spaetz/mail' >>>tags = db.get_all_tags() inited tags with 44762960 'Notmuch DB /home/spaetz/mail' >>>for tag in tags: >>> print tag inbox ... maildir::draft Freeing the Tags now #--------------------------------------------- >>>db = notmuch.Database("/home/spaetz/mailHAHA") NotmuchError: Could not open the specified database #--------------------------------------------- >>>tags = notmuch.Database("/home/spaetz/mail").get_all_tags() >>>del(tags) Freeing the Tags now Freeing the database now