1 Return-Path: <bremner@tesseract.cs.unb.ca>
\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 arlo.cworth.org (Postfix) with ESMTP id 82A6B6DE1557
\r
6 for <notmuch@notmuchmail.org>; Sun, 7 Jun 2015 08:04:11 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.225 tagged_above=-999 required=5 tests=[AWL=0.215,
\r
12 T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id cz30srmcgHGM for <notmuch@notmuchmail.org>;
\r
16 Sun, 7 Jun 2015 08:04:10 -0700 (PDT)
\r
17 Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id D695F6DE15C9
\r
20 for <notmuch@notmuchmail.org>; Sun, 7 Jun 2015 08:04:09 -0700 (PDT)
\r
21 Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim
\r
22 4.80) (envelope-from <bremner@tesseract.cs.unb.ca>)
\r
23 id 1Z1c6f-0004ok-16; Sun, 07 Jun 2015 15:03:25 +0000
\r
24 Received: (nullmailer pid 7852 invoked by uid 1000); Sun, 07 Jun 2015
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH 02/10] lib: deprecate notmuch_query_search_{threads, messages}
\r
29 Date: Sun, 7 Jun 2015 17:01:55 +0200
\r
30 Message-Id: <1433689323-7520-3-git-send-email-david@tethera.net>
\r
31 X-Mailer: git-send-email 2.1.4
\r
32 In-Reply-To: <1433689323-7520-1-git-send-email-david@tethera.net>
\r
33 References: <1433689323-7520-1-git-send-email-david@tethera.net>
\r
34 X-BeenThere: notmuch@notmuchmail.org
\r
35 X-Mailman-Version: 2.1.18
\r
37 List-Id: "Use and development of the notmuch mail system."
\r
38 <notmuch.notmuchmail.org>
\r
39 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
42 List-Post: <mailto:notmuch@notmuchmail.org>
\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
44 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
46 X-List-Received-Date: Sun, 07 Jun 2015 15:04:11 -0000
\r
48 The CLI (and bindings) code should really be updated to use the new
\r
49 status-code-returning versions. Here are some warnings to prod us (and
\r
50 other clients) to do so.
\r
52 lib/notmuch.h | 41 ++++++++++++++++++++++++++---------------
\r
53 1 file changed, 26 insertions(+), 15 deletions(-)
\r
55 diff --git a/lib/notmuch.h b/lib/notmuch.h
\r
56 index 6a69f31..c2ada4b 100644
\r
59 @@ -809,20 +809,25 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);
\r
60 * notmuch_threads_destroy function, but there's no good reason
\r
61 * to call it if the query is about to be destroyed).
\r
63 - * If a Xapian exception occurs this function will return NULL.
\r
64 - * For better error reporting, use the _st variant.
\r
66 -notmuch_threads_t *
\r
67 -notmuch_query_search_threads (notmuch_query_t *query);
\r
70 - * Like notmuch_query_search_threads, but with a status return.
\r
73 notmuch_query_search_threads_st (notmuch_query_t *query,
\r
74 notmuch_threads_t **out);
\r
77 + * Like notmuch_query_search_threads_st, but without a status return.
\r
79 + * If a Xapian exception occurs this function will return NULL.
\r
81 + * @deprecated Deprecated as of libnotmuch 4.3 (notmuch 0.21). Please
\r
82 + * use notmuch_query_search_threads_st instead.
\r
85 +NOTMUCH_DEPRECATED(4,3)
\r
86 +notmuch_threads_t *
\r
87 +notmuch_query_search_threads (notmuch_query_t *query);
\r
90 * Execute a query for messages, returning a notmuch_messages_t object
\r
91 * which can be used to iterate over the results. The returned
\r
92 * messages object is owned by the query and as such, will only be
\r
93 @@ -860,17 +865,23 @@ notmuch_query_search_threads_st (notmuch_query_t *query,
\r
94 * reason to call it if the query is about to be destroyed).
\r
96 * If a Xapian exception occurs this function will return NULL.
\r
97 - * For better error reporting, use the _st variant.
\r
99 -notmuch_messages_t *
\r
100 -notmuch_query_search_messages (notmuch_query_t *query);
\r
103 - * Like notmuch_query_search_messages, but with a status return.
\r
107 notmuch_query_search_messages_st (notmuch_query_t *query,
\r
108 notmuch_messages_t **out);
\r
110 + * Like notmuch_query_search_messages, but without a status return.
\r
112 + * If a Xapian exception occurs this function will return NULL.
\r
114 + * @deprecated Deprecated as of libnotmuch 4.3 (notmuch 0.21). Please use
\r
115 + * notmuch_query_search_messages_st instead.
\r
118 +NOTMUCH_DEPRECATED(4,3)
\r
119 +notmuch_messages_t *
\r
120 +notmuch_query_search_messages (notmuch_query_t *query);
\r
123 * Destroy a notmuch_query_t along with any associated resources.
\r