]> git.notmuchmail.org Git - notmuch/blob - test/corpus/cur/21:2,
test: Test show's handling of subprocess errors
[notmuch] / test / corpus / cur / 21:2,
1 MIME-Version: 1.0
2 Date: Tue, 17 Nov 2009 16:23:53 -0800
3 Message-ID: <cf0c4d610911171623q3e27a0adx802e47039b57604b@mail.gmail.com>
4 From: Alex Botero-Lowry <alex.boterolowry@gmail.com>
5 To: notmuch@notmuchmail.org
6 Content-Type: multipart/mixed; boundary=0016e64ca4d8f27a4804789a4139
7 Subject: [notmuch] [PATCH] Error out if no query is supplied to search
8         instead of going into an infinite loop
9 X-BeenThere: notmuch@notmuchmail.org
10 X-Mailman-Version: 2.1.12
11 Precedence: list
12 List-Id: "Use and development of the notmuch mail system."
13         <notmuch.notmuchmail.org>
14 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
15         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
16 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
17 List-Post: <mailto:notmuch@notmuchmail.org>
18 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
19 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
20         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
21 Sender: notmuch-bounces@notmuchmail.org
22 Errors-To: notmuch-bounces@notmuchmail.org
23
24 --0016e64ca4d8f27a4804789a4139
25 Content-Type: multipart/alternative; boundary=0016e64ca4d8f27a3604789a4137
26
27 --0016e64ca4d8f27a3604789a4137
28 Content-Type: text/plain; charset=ISO-8859-1
29
30 In this case error out when no query is supplied. There seems to be an
31 infinite-loop casued by i think notmuch_query_search_threads having
32 an exception:
33
34 A Xapian exception occurred: Syntax: <expression> AND <expression>
35 A Xapian exception occurred: Syntax: <expression> AND <expression>
36 A Xapian exception occurred: Syntax: <expression> AND <expression>
37 A Xapian exception occurred: Syntax: <expression> AND <expression>
38 A Xapian exception occurred: Syntax: <expression> AND <expression>
39 A Xapian exception occurred: Syntax: <expression> AND <expression>
40 A Xapian exception occurred: Syntax: <expression> AND <expression>
41 A Xapian exception occurred: Syntax: <expression> AND <expression>
42 A Xapian exception occurred: Syntax: <expression> AND <expression>
43 A Xapian exception occurred: Syntax: <expression> AND <expression>
44 A Xapian exception occurred: Syntax: <expression> AND <expression>
45 A Xapian exception occurred: Syntax: <expression> AND <expression>
46 A Xapian exception occurred: Syntax: <expression> AND <expression>
47 A Xapian exception occurred: Syntax: <expression> AND <expression>
48 A Xapian exception occurred: Syntax: <expression> AND <expression>
49
50 I'll look into that bug specifically a bit later.
51
52 It might be better to do a usage instead of just throwing an error here?
53
54 alex
55
56 --0016e64ca4d8f27a3604789a4137
57 Content-Type: text/html; charset=ISO-8859-1
58
59 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<br>an exception:<br><br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>
60 A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>
61 A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>
62 A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>
63 A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>
64 A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br>A Xapian exception occurred: Syntax: &lt;expression&gt; AND &lt;expression&gt;<br><br>I&#39;ll look into that bug specifically a bit later.<br>
65 <br>It might be better to do a usage instead of just throwing an error here?<br><br>alex<br>
66
67 --0016e64ca4d8f27a3604789a4137--
68 --0016e64ca4d8f27a4804789a4139
69 Content-Type: application/octet-stream; 
70         name="0001-Error-out-if-no-query-is-supplied-to-search-instead-.patch"
71 Content-Disposition: attachment; 
72         filename="0001-Error-out-if-no-query-is-supplied-to-search-instead-.patch"
73 Content-Transfer-Encoding: base64
74 X-Attachment-Id: f_g25cms190
75
76 RnJvbSAzZjk0MzFmNzRhNWZmNjZjODRjODY5YTNlMjZjMmJhZDQyYmVkMWIxIE1vbiBTZXAgMTcg
77 MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgQm90ZXJvLUxvd3J5IDxhbGV4LmJvdGVyb2xv
78 d3J5QGdtYWlsLmNvbT4KRGF0ZTogVHVlLCAxNyBOb3YgMjAwOSAxNjoyMDoyOCAtMDgwMApTdWJq
79 ZWN0OiBbUEFUQ0hdIEVycm9yIG91dCBpZiBubyBxdWVyeSBpcyBzdXBwbGllZCB0byBzZWFyY2gg
80 aW5zdGVhZCBvZiBnb2luZyBpbnRvIGFuIGluZmluaXRlIGxvb3AKCi0tLQogbm90bXVjaC1zZWFy
81 Y2guYyB8ICAgIDUgKysrKysKIDEgZmlsZXMgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAwIGRl
82 bGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL25vdG11Y2gtc2VhcmNoLmMgYi9ub3RtdWNoLXNlYXJj
83 aC5jCmluZGV4IDhkYjA5YzcuLmQ5NGZjY2QgMTAwNjQ0Ci0tLSBhL25vdG11Y2gtc2VhcmNoLmMK
84 KysrIGIvbm90bXVjaC1zZWFyY2guYwpAQCAtNjYsNiArNjYsMTEgQEAgbm90bXVjaF9zZWFyY2hf
85 Y29tbWFuZCAodm9pZCAqY3R4LCBpbnQgYXJnYywgY2hhciAqYXJndltdKQogICAgIGFyZ2MgLT0g
86 aTsKICAgICBhcmd2ICs9IGk7CiAKKyAgICBpZiAoYXJnYyA9PSAwKSB7CisgICAgICAgIGZwcmlu
87 dGYgKHN0ZGVyciwgIk5vIHF1ZXJ5IHByb3ZpZGVkXG4iKTsKKyAgICAgICAgcmV0dXJuIDE7Cisg
88 ICAgfQorCiAgICAgY29uZmlnID0gbm90bXVjaF9jb25maWdfb3BlbiAoY3R4LCBOVUxMLCBOVUxM
89 KTsKICAgICBpZiAoY29uZmlnID09IE5VTEwpCiAJcmV0dXJuIDE7Ci0tIAoxLjYuNS4yCgo=
90 --0016e64ca4d8f27a4804789a4139
91 Content-Type: text/plain; charset="us-ascii"
92 MIME-Version: 1.0
93 Content-Transfer-Encoding: 7bit
94 Content-Disposition: inline
95
96 _______________________________________________
97 notmuch mailing list
98 notmuch@notmuchmail.org
99 http://notmuchmail.org/mailman/listinfo/notmuch
100
101 --0016e64ca4d8f27a4804789a4139--
102