1 Return-Path: <david@tethera.net>
\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 214CF431FAF
\r
6 for <notmuch@notmuchmail.org>; Wed, 15 Jan 2014 06:19:49 -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 gagBYfgwraLh for <notmuch@notmuchmail.org>;
\r
16 Wed, 15 Jan 2014 06:19:41 -0800 (PST)
\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])
\r
18 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 9ACD3431FBD
\r
21 for <notmuch@notmuchmail.org>; Wed, 15 Jan 2014 06:19:41 -0800 (PST)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <david@tethera.net>)
\r
24 id 1W3RJg-00069k-KK; Wed, 15 Jan 2014 10:19:36 -0400
\r
25 Received: (nullmailer pid 24799 invoked by uid 1000); Wed, 15 Jan 2014
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: Jani Nikula <jani@nikula.org>, Austin Clements <amdragon@MIT.EDU>
\r
29 Subject: Re: [PATCH 2/2] lib: introduce notmuch_database_new for initializing
\r
31 In-Reply-To: <87a9eyk8ap.fsf@zancas.localnet>
\r
32 References: <cover.1385903109.git.jani@nikula.org>
\r
33 <fc7ecd990e55fcfba17de4d71e8823c98760f9ce.1385903109.git.jani@nikula.org>
\r
34 <20131204231113.GD8854@mit.edu> <87mwkf40x5.fsf@nikula.org>
\r
35 <87a9eyk8ap.fsf@zancas.localnet>
\r
36 User-Agent: Notmuch/0.17+30~g50677dd (http://notmuchmail.org) Emacs/24.3.1
\r
37 (x86_64-pc-linux-gnu)
\r
38 Date: Wed, 15 Jan 2014 10:19:32 -0400
\r
39 Message-ID: <87r489iayz.fsf@zancas.localnet>
\r
41 Content-Type: text/plain
\r
42 Cc: notmuch@notmuchmail.org
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 15 Jan 2014 14:19:49 -0000
\r
57 David Bremner <david@tethera.net> writes:
\r
59 > I'm not sure if this is also a dead end, but I was trying to sketch out
\r
60 > an api that returned something more detailed as status and came up with
\r
61 > the following. The general idea is to replace notmuch_status_t with a
\r
62 > pointer to struct. This will require pretty noisy source changes,
\r
63 > unless we're comfortable with using NULL pointer to indicate success.
\r
64 > In either case we'd rename the existing enum to something like
\r
65 > notmuch_status_code_t.
\r
67 > /* pseudo-C follows */
\r
69 > typedef struct notmuch_status_struct * notmuch_status_t;
\r
72 A less API disruptive change would be to continue returning codes, but
\r
73 provide functions to interrogate the main types (database, message, etc)
\r
74 for "last-error". We'd still need to special case database_(open|create)
\r