1 Return-Path: <wking@tremily.us>
\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 B0724429E2E
\r
6 for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 03:00:58 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 9IMtziHfIEIJ for <notmuch@notmuchmail.org>;
\r
18 Mon, 3 Feb 2014 03:00:53 -0800 (PST)
\r
19 Received: from qmta01.westchester.pa.mail.comcast.net
\r
20 (qmta01.westchester.pa.mail.comcast.net [76.96.62.16])
\r
21 by olra.theworths.org (Postfix) with ESMTP id 5469B429E2F
\r
22 for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 03:00:42 -0800 (PST)
\r
23 Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76])
\r
24 by qmta01.westchester.pa.mail.comcast.net with comcast
\r
25 id Mmzj1n0041ei1Bg51n0hrp; Mon, 03 Feb 2014 11:00:41 +0000
\r
26 Received: from odin.tremily.us ([24.18.63.50])
\r
27 by omta24.westchester.pa.mail.comcast.net with comcast
\r
28 id Mn0g1n00M152l3L3kn0hgi; Mon, 03 Feb 2014 11:00:41 +0000
\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])
\r
30 by odin.tremily.us (Postfix) with ESMTPS id 949D2FB4D4E;
\r
31 Mon, 3 Feb 2014 03:00:40 -0800 (PST)
\r
32 Received: (nullmailer pid 692 invoked by uid 1000);
\r
33 Mon, 03 Feb 2014 10:59:41 -0000
\r
34 From: "W. Trevor King" <wking@tremily.us>
\r
35 To: notmuch@notmuchmail.org
\r
36 Subject: [PATCH 07/17] nmbug-status: Don't require write access
\r
37 Date: Mon, 3 Feb 2014 02:59:25 -0800
\r
39 <ad3828a4c670876c16352a7bc7a147152a7cbb5b.1391424512.git.wking@tremily.us>
\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1
\r
41 In-Reply-To: <cover.1391424512.git.wking@tremily.us>
\r
42 References: <cover.1391424512.git.wking@tremily.us>
\r
43 In-Reply-To: <cover.1391424512.git.wking@tremily.us>
\r
44 References: <cover.1391424512.git.wking@tremily.us>
\r
46 Content-Type: text/plain; charset=UTF-8
\r
47 Content-Transfer-Encoding: 8bit
\r
48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
\r
49 s=q20121106; t=1391425241;
\r
50 bh=mOi9DNGt/9vulM62iNpwG3mj3ZW5v7HGmIXcbYknaVA=;
\r
51 h=Received:Received:Received:Received:From:To:Subject:Date:
\r
52 Message-Id:MIME-Version:Content-Type;
\r
53 b=rwjileMhK8uKoK6TCNQiSxNgWO5aTLYtwDu7VD8Sdv0Ck4clN6OV/geeu019Q3+uA
\r
54 hq3Mnw6tw7Yf3Szv7ZKKxGkJQgEjgmIYajPjTJMGXj2kPkmN1X+AkZdKDU+I7+is18
\r
55 2dDzHCE10pAO41vsPhyD6CXUKmQ/p0X+RNKbMe+vgzMBbbAQx5pdKuZcYFgLAnSIul
\r
56 //gXZ2vXmxDUDJH9vGTzdk9+S/NGYZXJm+OK+fMMsLB/Pah/oNEuZJMZreID4jls85
\r
57 orFah2N9VKZN6IFue/tgsDsLrPN9zC+tsCIsTiCw8IbrWOYyh1ixBx0N6BHHq9HUXD
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.13
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Mon, 03 Feb 2014 11:00:58 -0000
\r
73 The database in only used for notmuch.Query, so there's no need for
\r
74 write access. This allows nmbug-status to run while the database is
\r
75 being updated, without raising:
\r
77 A Xapian exception occurred opening database: Unable to get write lock on …: already locked
\r
78 Traceback (most recent call last):
\r
79 File "./nmbug-status", line 182, in <module>
\r
80 db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
\r
81 File "/…/notmuch/database.py", line 154, in __init__
\r
82 self.open(path, mode)
\r
83 File "/…/notmuch/database.py", line 214, in open
\r
84 raise NotmuchError(status)
\r
85 notmuch.errors.XapianError
\r
87 devel/nmbug/nmbug-status | 2 +-
\r
88 1 file changed, 1 insertion(+), 1 deletion(-)
\r
90 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
\r
91 index 199892f..be3e28e 100755
\r
92 --- a/devel/nmbug/nmbug-status
\r
93 +++ b/devel/nmbug/nmbug-status
\r
94 @@ -180,7 +180,7 @@ else:
\r
98 -db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
\r
99 +db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
\r
101 if output_format == 'html':
\r
102 print('''<?xml version="1.0" encoding="utf-8" ?>
\r