1 Return-Path: <davrieb@liegesta.at>
\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 6F988431FB6
\r
6 for <notmuch@notmuchmail.org>; Sun, 6 Nov 2011 04:23:11 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id rYO3nnQqr4ur for <notmuch@notmuchmail.org>;
\r
16 Sun, 6 Nov 2011 04:23:10 -0800 (PST)
\r
17 Received: from plum.liegesta.at (plum.liegesta.at [83.169.17.237])
\r
18 by olra.theworths.org (Postfix) with ESMTP id DF0D8429E27
\r
19 for <notmuch@notmuchmail.org>; Sun, 6 Nov 2011 04:23:09 -0800 (PST)
\r
20 Received: from ambiguous-mid.liegesta.at (mk046207255168.a1.net
\r
21 [46.207.255.168]) (Authenticated sender: davrieb)
\r
22 by plum.liegesta.at (Postfix) with ESMTPA id 197A627B8230;
\r
23 Sun, 6 Nov 2011 13:23:08 +0100 (CET)
\r
24 Received: by ambiguous-mid.liegesta.at (Postfix, from userid 1000)
\r
25 id DEEAC1FF24; Sun, 6 Nov 2011 12:23:06 +0100 (CET)
\r
26 From: David Riebenbauer <davrieb@liegesta.at>
\r
27 To: Notmuch Mailing List <notmuch@notmuchmail.org>
\r
28 Subject: [PATCH 0/3] notmuch-deliver: wait for database to become unlocked and
\r
30 Date: Sun, 6 Nov 2011 12:23:01 +0100
\r
31 Message-Id: <1320578584-6642-1-git-send-email-davrieb@liegesta.at>
\r
32 X-Mailer: git-send-email 1.7.7.1
\r
33 X-BeenThere: notmuch@notmuchmail.org
\r
34 X-Mailman-Version: 2.1.13
\r
36 List-Id: "Use and development of the notmuch mail system."
\r
37 <notmuch.notmuchmail.org>
\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
39 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
41 List-Post: <mailto:notmuch@notmuchmail.org>
\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
45 X-List-Received-Date: Sun, 06 Nov 2011 12:23:11 -0000
\r
49 I noticed that mail would bounce in my setup, if the xapian database
\r
50 was locked while notmuch-deliver tried to run.
\r
52 My solution was to make it wait for some time adn retry. A test
\r
53 program for is alos included.
\r
58 David Riebenbauer (3):
\r
59 notmuch-deliver: wait for the database to become unlocked
\r
60 notmuch-deliver: test wait for database to become available
\r
61 notmuch-deliver: Convert test program to glib main loop.
\r
63 contrib/notmuch-deliver/.gitignore | 2 +
\r
64 contrib/notmuch-deliver/Makefile.am | 2 +-
\r
65 contrib/notmuch-deliver/configure.ac | 1 +
\r
66 contrib/notmuch-deliver/src/main.c | 25 +++-
\r
67 contrib/notmuch-deliver/test/Makefile.am | 26 +++
\r
68 contrib/notmuch-deliver/test/nm-test.sh | 9 +
\r
69 contrib/notmuch-deliver/test/nm-testconfig | 12 ++
\r
70 contrib/notmuch-deliver/test/notmuch-lock.c | 226 +++++++++++++++++++++++++++
\r
71 contrib/notmuch-deliver/test/testmail | 7 +
\r
72 9 files changed, 306 insertions(+), 4 deletions(-)
\r
73 create mode 100644 contrib/notmuch-deliver/test/Makefile.am
\r
74 create mode 100755 contrib/notmuch-deliver/test/nm-test.sh
\r
75 create mode 100644 contrib/notmuch-deliver/test/nm-testconfig
\r
76 create mode 100644 contrib/notmuch-deliver/test/notmuch-lock.c
\r
77 create mode 100644 contrib/notmuch-deliver/test/testmail
\r