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