Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6F988431FB6 for ; Sun, 6 Nov 2011 04:23:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rYO3nnQqr4ur for ; Sun, 6 Nov 2011 04:23:10 -0800 (PST) Received: from plum.liegesta.at (plum.liegesta.at [83.169.17.237]) by olra.theworths.org (Postfix) with ESMTP id DF0D8429E27 for ; Sun, 6 Nov 2011 04:23:09 -0800 (PST) Received: from ambiguous-mid.liegesta.at (mk046207255168.a1.net [46.207.255.168]) (Authenticated sender: davrieb) by plum.liegesta.at (Postfix) with ESMTPA id 197A627B8230; Sun, 6 Nov 2011 13:23:08 +0100 (CET) Received: by ambiguous-mid.liegesta.at (Postfix, from userid 1000) id DEEAC1FF24; Sun, 6 Nov 2011 12:23:06 +0100 (CET) From: David Riebenbauer To: Notmuch Mailing List Subject: [PATCH 0/3] notmuch-deliver: wait for database to become unlocked and test Date: Sun, 6 Nov 2011 12:23:01 +0100 Message-Id: <1320578584-6642-1-git-send-email-davrieb@liegesta.at> X-Mailer: git-send-email 1.7.7.1 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 12:23:11 -0000 Hi, I noticed that mail would bounce in my setup, if the xapian database was locked while notmuch-deliver tried to run. My solution was to make it wait for some time adn retry. A test program for is alos included. Regards, David David Riebenbauer (3): notmuch-deliver: wait for the database to become unlocked notmuch-deliver: test wait for database to become available notmuch-deliver: Convert test program to glib main loop. contrib/notmuch-deliver/.gitignore | 2 + contrib/notmuch-deliver/Makefile.am | 2 +- contrib/notmuch-deliver/configure.ac | 1 + contrib/notmuch-deliver/src/main.c | 25 +++- contrib/notmuch-deliver/test/Makefile.am | 26 +++ contrib/notmuch-deliver/test/nm-test.sh | 9 + contrib/notmuch-deliver/test/nm-testconfig | 12 ++ contrib/notmuch-deliver/test/notmuch-lock.c | 226 +++++++++++++++++++++++++++ contrib/notmuch-deliver/test/testmail | 7 + 9 files changed, 306 insertions(+), 4 deletions(-) create mode 100644 contrib/notmuch-deliver/test/Makefile.am create mode 100755 contrib/notmuch-deliver/test/nm-test.sh create mode 100644 contrib/notmuch-deliver/test/nm-testconfig create mode 100644 contrib/notmuch-deliver/test/notmuch-lock.c create mode 100644 contrib/notmuch-deliver/test/testmail -- 1.7.7.1