From: David Riebenbauer <davrieb@liegesta.at>
To: Notmuch Mailing List <notmuch@notmuchmail.org>
Subject: [PATCH 0/3] notmuch-deliver: wait for database to become unlocked and test
Date: Sun, 6 Nov 2011 12:23:01 +0100 [thread overview]
Message-ID: <1320578584-6642-1-git-send-email-davrieb@liegesta.at> (raw)
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
next reply other threads:[~2011-11-06 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 11:23 David Riebenbauer [this message]
2011-11-06 11:23 ` [PATCH 1/3] notmuch-deliver: wait for the database to become unlocked David Riebenbauer
2011-11-06 11:23 ` [PATCH 2/3] notmuch-deliver: test wait for database to become available David Riebenbauer
2011-11-06 11:23 ` [PATCH 3/3] notmuch-deliver: Convert test program to glib main loop David Riebenbauer
2011-11-07 1:32 ` [PATCH 0/3] notmuch-deliver: wait for database to become unlocked and test Ali Polatel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320578584-6642-1-git-send-email-davrieb@liegesta.at \
--to=davrieb@liegesta.at \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).