1 Return-Path: <teythoon@jade-hamburg.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 058CF431FAE
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 17:05:02 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id mk4UQl3g6eZV for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 Feb 2012 17:05:01 -0800 (PST)
\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 4B6A2431FBC
\r
21 for <notmuch@notmuchmail.org>; Thu, 23 Feb 2012 17:05:01 -0800 (PST)
\r
22 Received: from mail.jade-hamburg.de (unknown [85.183.11.228])
\r
23 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
24 (No client certificate requested)
\r
25 by mail.cryptobitch.de (Postfix) with ESMTPSA id 87C00221F9E
\r
26 for <notmuch@notmuchmail.org>; Fri, 24 Feb 2012 02:04:59 +0100 (CET)
\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)
\r
28 id E89E2DF2A9; Fri, 24 Feb 2012 02:04:58 +0100 (CET)
\r
29 Received: from thinkbox.jade-hamburg.de
\r
30 (dslb-088-075-032-221.pools.arcor-ip.net [88.75.32.221])
\r
31 (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
32 (No client certificate requested) (Authenticated sender: teythoon)
\r
33 by mail.jade-hamburg.de (Postfix) with ESMTPSA id 53C25DF2A5;
\r
34 Fri, 24 Feb 2012 02:04:56 +0100 (CET)
\r
35 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)
\r
36 (envelope-from <teythoon@thinkbox.jade-hamburg.de>)
\r
37 id 1S0jae-0000g2-Fl; Fri, 24 Feb 2012 02:04:52 +0100
\r
38 Content-Type: text/plain; charset="utf-8"
\r
40 Content-Transfer-Encoding: quoted-printable
\r
41 From: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
42 User-Agent: alot/0.21+
\r
43 To: David Bremner <david@tethera.net>,
\r
44 notmuch mailing list <notmuch@notmuchmail.org>
\r
45 References: <20120221002921.8534.57091@thinkbox.jade-hamburg.de>
\r
46 <20120221155312.GB30513@mit.edu>
\r
47 <20120222151745.4213.93513@thinkbox.jade-hamburg.de>
\r
48 <20120223222200.17796.11840@thinkbox.jade-hamburg.de>
\r
49 <87hayhkr9r.fsf@zancas.localnet>
\r
50 In-Reply-To: <87hayhkr9r.fsf@zancas.localnet>
\r
51 Message-ID: <20120224010452.17796.73012@thinkbox.jade-hamburg.de>
\r
52 Subject: Re: notmuch as a shared object aka library knigge
\r
53 Date: Fri, 24 Feb 2012 02:04:52 +0100
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 List-Id: "Use and development of the notmuch mail system."
\r
58 <notmuch.notmuchmail.org>
\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
62 List-Post: <mailto:notmuch@notmuchmail.org>
\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
66 X-List-Received-Date: Fri, 24 Feb 2012 01:05:02 -0000
\r
68 Quoting David Bremner (2012-02-24 01:29:36)
\r
69 >On Thu, 23 Feb 2012 23:22:00 +0100, Justus Winter <4winter@informatik.uni-=
\r
72 >> That wasn't meant to sound as harsh as it probably did. I seriously
\r
73 >> hope that someone is around who enjoys to hack on the c/c++ part of
\r
74 >> the library and is willing fix problems in it.
\r
76 >Luckily I deleted my snarky reply ;).
\r
80 >> And I worked around the two functions (that I know of) that call
\r
81 >> exit(3) by conditionally raising exceptions in the python bindings,
\r
82 >> but this is only meant as a intermediate fix, a hack that should be
\r
83 >> removed as soon as the library is fixed.
\r
85 >Can you make test cases to document exactly when internal errors are
\r
86 >occuring in the library? Somehow it seems like the CLI is not triggering
\r
87 >them. It might help clarify the discussion and/or motivate people to fix
\r
90 I did ;) I provided a python program in my original mail for
\r
91 Database.get_directory aka notmuch_database_get_directory and the one
\r
92 for Database.find_message_by_filename aka
\r
93 notmuch_database_find_message_by_filename can be trivially derived
\r
94 from it (though you need a path to a mail within your maildir). It
\r
95 should be straight forward to port those to c if you want to.
\r