Re: [PATCH] lib: reword comment about XFOLDER: prefix
[notmuch-archives.git] / 39 / 820e68c7680bc0379b4cc21a3180bdd01362dc
1 Return-Path: <patricktotzke@googlemail.com>\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 19F61429E27\r
6         for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 03:44:48 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id DWussa4eLXux for <notmuch@notmuchmail.org>;\r
17         Tue,  6 Dec 2011 03:44:47 -0800 (PST)\r
18 Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com\r
19  [74.125.83.53])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  484C4429E26    for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 03:44:47 -0800\r
22  (PST)\r
23 Received: by eekb57 with SMTP id b57so1595943eek.26\r
24         for <notmuch@notmuchmail.org>; Tue, 06 Dec 2011 03:44:44 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
26         d=googlemail.com; s=gamma;\r
27         h=message-id:content-type:mime-version:references:to:in-reply-to:from\r
28         :subject:date; bh=NLOmGwuv61XBT5f0stzWWibhs7vqXfA+rP3UNEg5BXs=;\r
29         b=AKftbS92LbJ1MquDT884578KStQNkZPhDqJovjG0GG43aUCjUjl/WA92oJI+RKZFDt\r
30         sxyKRW18B6JZiruJva9lJ/QiGJ9OxN8CEF2tcW36esc83R3TPPVQ9n/yo8Gc5aTZ5+SU\r
31         R/fZ4rg8LZEb+n9S2cuMF6/PF3NVD77CNfYf8=\r
32 Received: by 10.14.9.165 with SMTP id 37mr2504189eet.106.1323171884420;\r
33         Tue, 06 Dec 2011 03:44:44 -0800 (PST)\r
34 Received: from localhost (dhcp-91-036.inf.ed.ac.uk. [129.215.91.36])\r
35         by mx.google.com with ESMTPS id j9sm34009254bkd.2.2011.12.06.03.44.41\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Tue, 06 Dec 2011 03:44:42 -0800 (PST)\r
38 Message-ID: <4ede002a.0922cc0a.207d.3460@mx.google.com>\r
39 Content-Type: multipart/mixed; boundary="===============1876771212=="\r
40 MIME-Version: 1.0\r
41 References:\r
42  <1318198374-926-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
43         <1318198374-926-2-git-send-email-4winter@informatik.uni-hamburg.de>\r
44         <4eddf2b1.4288980a.0b74.5557@mx.google.com> <87mxb66jit.fsf@SSpaeth.de>\r
45 To: Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
46         Justus Winter <4winter@informatik.uni-hamburg.de>, notmuch@notmuchmail.org\r
47 In-Reply-To: <87mxb66jit.fsf@SSpaeth.de>\r
48 From: Patrick Totzke <patricktotzke@googlemail.com>\r
49 Subject: Re: [PATCH 2/2] python: annotate all calls into libnotmuch with types\r
50 Date: Tue, 06 Dec 2011 11:44:01 +0000\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Tue, 06 Dec 2011 11:44:48 -0000\r
64 \r
65 --===============1876771212==\r
66 Content-Type: text/plain; charset="utf-8"\r
67 MIME-Version: 1.0\r
68 Content-Transfer-Encoding: quoted-printable\r
69 \r
70 yes, i can. here's how to reproduce it on master:\r
71 \r
72 fire a `notmuch tag +TEST1 '*'`, which should block the db for a while.\r
73 Then use the attached script to write to the index (this could make a nice\r
74 second testcase for the bindings in case the test body is large enough).\r
75 \r
76 On master, the script fails like this:\r
77 \r
78 A Xapian exception occurred opening database: Unable to get write lock on\r
79 /home/pazz/mail/.notmuch/xapian: already locked\r
80 Segmentation fault\r
81 \r
82 When you reset using `git reset e92b438f46a3a` (to 4winters first patch), t=\r
83 he script\r
84 fails like this, which is the intended behaviour:\r
85 \r
86 A Xapian exception occurred opening database: Unable to get write lock on /=\r
87 home/pazz/mail/.notmuch/xapian: already locked\r
88 Traceback (most recent call last):\r
89   File "./p.py", line 3, in <module>\r
90     db =3D notmuch.Database(mode=3Dnotmuch.Database.MODE.READ_WRITE)\r
91   File "/usr/local/lib/python2.7/dist-packages/notmuch/database.py", line 1=\r
92 21, in __init__\r
93     self.open(path, mode)\r
94   File "/usr/local/lib/python2.7/dist-packages/notmuch/database.py", line 1=\r
95 73, in open\r
96     raise NotmuchError(message=3D"Could not open the specified database")\r
97 notmuch.globals.NotmuchError: Could not open the specified database\r
98 \r
99 \r
100 best,\r
101 /p\r
102 \r
103 \r
104 Quoting Sebastian Spaeth (2011-12-06 11:12:42)\r
105 >On Tue, 06 Dec 2011 10:46:31 +0000, Patrick Totzke <patricktotzke@googlema=\r
106 il.com> wrote:\r
107 >> This commit breaks raising XapianErrors for me.\r
108 >> =\r
109 \r
110 >> If I lock the index with some `notmuch tag +test '*'`\r
111 >> and try to write to it in alot, i get a segfault and\r
112 >> the following on stderr:\r
113 >> =\r
114 \r
115 >> Xapian exception occurred opening database: Unable to get write lock on\r
116 >> /home/pazz/mail/.notmuch/xapian: already locked\r
117 >\r
118 >Can you confirm that this only occurs with this patch and not without?\r
119 >To be honest, I don't see how the patch would change things in a way\r
120 >that make it throw XapianErrors that would not also occur before this\r
121 >patch.\r
122 >\r
123 >Sebastian\r
124 \r
125 --===============1876771212==\r
126 Content-Type: text/x-python; charset="us-ascii"\r
127 MIME-Version: 1.0\r
128 Content-Transfer-Encoding: 7bit\r
129 Content-Disposition: attachment; filename="exceptiontest.py"\r
130 \r
131 #!/usr/bin/python\r
132 import notmuch\r
133 db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)\r
134 q_new = notmuch.Query(db, '*')\r
135 for m in q_new.search_messages():\r
136     m.add_tag('TEST')\r
137 \r
138 --===============1876771212==--\r