From: David Bremner Date: Sun, 1 Mar 2015 08:04:43 +0000 (+0100) Subject: Re: [PATCH] lib: add new status reporting API for notmuch_query_search_{m,t} X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c498f0a458b3e584715bbc49748ca48e3eb4f9f;p=notmuch-archives.git Re: [PATCH] lib: add new status reporting API for notmuch_query_search_{m,t} --- diff --git a/80/0832b22df08aa3d61ccb2e93d83539c756450e b/80/0832b22df08aa3d61ccb2e93d83539c756450e new file mode 100644 index 000000000..cde815b29 --- /dev/null +++ b/80/0832b22df08aa3d61ccb2e93d83539c756450e @@ -0,0 +1,66 @@ +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 0D71E431FD7 + for ; Mon, 2 Mar 2015 10:23:21 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 2.438 +X-Spam-Level: ** +X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 BZguI9EEYvvs for ; + Mon, 2 Mar 2015 10:23:17 -0800 (PST) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 4FFF940BFB0 + for ; Mon, 2 Mar 2015 00:36:20 -0800 (PST) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.80) (envelope-from ) + id 1YRyrw-0001X7-S7; Sun, 01 Mar 2015 08:04:56 +0000 +Received: (nullmailer pid 14658 invoked by uid 1000); Sun, 01 Mar 2015 + 08:04:43 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: Re: [PATCH] lib: add new status reporting API for + notmuch_query_search_{m,t} +In-Reply-To: <1421740421-10401-1-git-send-email-david@tethera.net> +References: <1421740421-10401-1-git-send-email-david@tethera.net> +User-Agent: Notmuch/0.19+67~gdbe9924 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Sun, 01 Mar 2015 09:04:43 +0100 +Message-ID: <87bnkd87ok.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +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, 02 Mar 2015 18:23:21 -0000 + +David Bremner writes: + +> This at least allows distinguishing between out of memory and Xapian +> exceptions. Adding finer grained status codes would allow different +> Xapian exceptions to be preserved. +> +> Adding wrappers allows people to transition gradually to the new API, +> at the cost of bloating the library API a bit. + +Merged to master. Please send any complaints about the name ASAP, rather +than after people start using it. + +d