1 Return-Path: <anholt@gaiman.anholt.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 2EEF4431FBF
\r
6 for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 05:01:36 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id QxN4TavcY6+A for <notmuch@notmuchmail.org>;
\r
11 Fri, 20 Nov 2009 05:01:35 -0800 (PST)
\r
12 Received: from kingsolver.anholt.net (71-20-254-182.war.clearwire-wmx.net
\r
14 by olra.theworths.org (Postfix) with ESMTP id ACD0D431FAE
\r
15 for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 05:01:35 -0800 (PST)
\r
16 Received: from gaiman.anholt.net (localhost [127.0.0.1])
\r
17 by kingsolver.anholt.net (Postfix) with ESMTP id BE85E2C9C02F;
\r
18 Fri, 20 Nov 2009 05:01:41 -0800 (PST)
\r
19 Received: by gaiman.anholt.net (Postfix, from userid 1000)
\r
20 id CBCFC1620D9; Fri, 20 Nov 2009 14:00:43 +0100 (CET)
\r
21 From: Eric Anholt <eric@anholt.net>
\r
22 To: notmuch@notmuchmail.org
\r
23 Date: Fri, 20 Nov 2009 14:00:42 +0100
\r
24 Message-Id: <1258722042-14237-1-git-send-email-eric@anholt.net>
\r
25 X-Mailer: git-send-email 1.6.4.3
\r
26 X-Mailman-Approved-At: Fri, 20 Nov 2009 07:47:22 -0800
\r
27 Cc: Eric Anholt <eric@anholt.net>
\r
28 Subject: [notmuch] [PATCH] When a search query triggers a Xapian exception,
\r
29 log what the query was.
\r
30 X-BeenThere: notmuch@notmuchmail.org
\r
31 X-Mailman-Version: 2.1.12
\r
33 List-Id: "Use and development of the notmuch mail system."
\r
34 <notmuch.notmuchmail.org>
\r
35 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
36 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
37 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
38 List-Post: <mailto:notmuch@notmuchmail.org>
\r
39 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
40 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
42 X-List-Received-Date: Fri, 20 Nov 2009 13:01:36 -0000
\r
44 In my script containing a series of queries to be run on new mail for
\r
45 setting up tags, it's nice to see which query I typed wrong.
\r
47 Signed-off-by: Eric Anholt <eric@anholt.net>
\r
50 1 files changed, 1 insertions(+), 0 deletions(-)
\r
52 diff --git a/lib/query.cc b/lib/query.cc
\r
53 index 75f22b3..ea521dd 100644
\r
56 @@ -151,6 +151,7 @@ notmuch_query_search_messages (notmuch_query_t *query,
\r
57 } catch (const Xapian::Error &error) {
\r
58 fprintf (stderr, "A Xapian exception occurred: %s\n",
\r
59 error.get_msg().c_str());
\r
60 + fprintf (stderr, "Query string was: %s\n", query->query_string);
\r
63 return _notmuch_messages_create (message_list);
\r