X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=test%2Fcorpus%2F49;fp=test%2Fcorpus%2F49;h=b244f8cee28739d53c8e366ea9d3697f147d4de3;hb=d805866ec502540e80b6209bfb6a54fd24ff4458;hp=0000000000000000000000000000000000000000;hpb=ba9f9efc9a8ba9d6e509d4041a66e9a2d31171b1;p=notmuch diff --git a/test/corpus/49 b/test/corpus/49 new file mode 100644 index 00000000..b244f8ce --- /dev/null +++ b/test/corpus/49 @@ -0,0 +1,33 @@ +From: "Carl Worth" +To: notmuch@notmuchmail.org +Date: Wed, 18 Nov 2009 03:31:23 -0800 +Subject: [notmuch] [PATCH] Error out if no query is supplied to search + instead of going into an infinite loop +In-Reply-To: +References: +Message-ID: <877htoqdbo.fsf@yoom.home.cworth.org> + +On Tue, 17 Nov 2009 16:23:53 -0800, Alex Botero-Lowry wrote: +> In this case error out when no query is supplied. There seems to be an +> infinite-loop casued by i think notmuch_query_search_threads having +> an exception: +> A Xapian exception occurred: Syntax: AND +> A Xapian exception occurred: Syntax: AND +> A Xapian exception occurred: Syntax: AND +> +> I'll look into that bug specifically a bit later. +> +> It might be better to do a usage instead of just throwing an error here? + +Definitely. + +Priit Laes reported the same thing in IRC and I've just committed a +patch to give a nice error message: + +$ ./notmuch search +Error: notmuch search requires at least one search term. + +Thanks for the report! + +-Carl +