Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 0d / 081975d063e49980a65b890fa030b5bad36dd6
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 E374B431FC0\r
6         for <notmuch@notmuchmail.org>; Wed, 31 Dec 2014 12:11:23 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 QxYOlkT92BJ0 for <notmuch@notmuchmail.org>;\r
16         Wed, 31 Dec 2014 12:11:20 -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 A92F1431FCB\r
21         for <notmuch@notmuchmail.org>; Wed, 31 Dec 2014 12:11:20 -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 1Y6Pbs-0000FH-Ci; Wed, 31 Dec 2014 16:11:12 -0400\r
25 Received: (nullmailer pid 2455 invoked by uid 1000); Wed, 31 Dec 2014\r
26         20:11:06 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Ludovic LANGE <ll-notmuchmail@lange.nom.fr>, notmuch@notmuchmail.org\r
29 Subject: Re: [PATCH] ruby: add bindings for `notmuch_database_get_all_tags`\r
30 In-Reply-To: <1416167892-15686-1-git-send-email-ll-notmuchmail@lange.nom.fr>\r
31 References: <1416167892-15686-1-git-send-email-ll-notmuchmail@lange.nom.fr>\r
32 User-Agent: Notmuch/0.19+7~g5d7f7a6 (http://notmuchmail.org) Emacs/24.4.1\r
33         (x86_64-pc-linux-gnu)\r
34 Date: Wed, 31 Dec 2014 21:11:06 +0100\r
35 Message-ID: <874msbh95x.fsf@maritornes.cs.unb.ca>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Wed, 31 Dec 2014 20:11:24 -0000\r
51 \r
52 Ludovic LANGE <ll-notmuchmail@lange.nom.fr> writes:\r
53 \r
54 > +    tags = notmuch_database_get_all_tags (db);\r
55 > +    if (!tags)\r
56 > +     rb_raise (notmuch_rb_eMemoryError, "Out of memory");\r
57 \r
58 Hi Ludovic;\r
59 \r
60 Sorry about the slow response.  It's not really your fault, but this\r
61 exception is is not really correct, since there are at least two\r
62 possible error conditions which get squashed into a NULL.  I have\r
63 proposed a series [1] which should make it possible to tell the\r
64 difference, but in the mean time I wonder if it would be better to\r
65 to do \r
66 \r
67 rb_raise (notmuch_rb_eBaseError, "unknown notmuch error")\r
68 \r
69 with a comment "XXX: figure out actual error".\r
70 \r
71 Cheers,\r
72 \r
73 d\r
74 \r
75 [1]: id:1419788030-10567-2-git-send-email-david@tethera.net\r