]> git.notmuchmail.org Git - notmuch/blob - test/corpora/default/cur/49:2,
Import notmuch_0.28.2.orig.tar.gz
[notmuch] / test / corpora / default / cur / 49:2,
1 From: "Carl Worth" <cworth@cworth.org>
2 To: notmuch@notmuchmail.org
3 Date: Wed, 18 Nov 2009 03:31:23 -0800
4 Subject: [notmuch] [PATCH] Error out if no query is supplied to search
5  instead of going into an infinite loop
6 In-Reply-To: <cf0c4d610911171623q3e27a0adx802e47039b57604b@mail.gmail.com>
7 References: <cf0c4d610911171623q3e27a0adx802e47039b57604b@mail.gmail.com>
8 Message-ID: <877htoqdbo.fsf@yoom.home.cworth.org>
9
10 On Tue, 17 Nov 2009 16:23:53 -0800, Alex Botero-Lowry <alex.boterolowry at gmail.com> wrote:
11 > In this case error out when no query is supplied. There seems to be an
12 > infinite-loop casued by i think notmuch_query_search_threads having
13 > an exception:
14 > A Xapian exception occurred: Syntax: <expression> AND <expression>
15 > A Xapian exception occurred: Syntax: <expression> AND <expression>
16 > A Xapian exception occurred: Syntax: <expression> AND <expression>
17
18 > I'll look into that bug specifically a bit later.
19
20 > It might be better to do a usage instead of just throwing an error here?
21
22 Definitely.
23
24 Priit Laes reported the same thing in IRC and I've just committed a
25 patch to give a nice error message:
26
27 $ ./notmuch search
28 Error: notmuch search requires at least one search term.
29
30 Thanks for the report!
31
32 -Carl
33