summaryrefslogtreecommitdiffstats
path: root/notmuch-client.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-11-27 23:01:42 -0400
committerDavid Bremner <david@tethera.net>2016-12-07 07:00:40 -0400
commitd74c5345704136611f993ca38e0d035b1da798b6 (patch)
treea9d5383e410994bb0261d704fe1a102f9639e1d7 /notmuch-client.h
parent9259b97fa2659ae6b6dbcd49b04db087e64036ad (diff)
cli/insert: return EX_TEMPFAIL for some errors
Attempt to distinguish between errors indicating misconfiguration or programmer error, which we consider "permanent", in the sense that automatic retries are unlikely to be useful, and those indicating transient error conditions. We consider XAPIAN_EXCEPTION transient because it covers the important special case of locking failure.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r--notmuch-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h
index 793f32ec..d026e600 100644
--- a/notmuch-client.h
+++ b/notmuch-client.h
@@ -489,6 +489,9 @@ print_status_database (const char *loc,
const notmuch_database_t *database,
notmuch_status_t status);
+int
+status_to_exit (notmuch_status_t status);
+
#include "command-line-arguments.h"
extern char *notmuch_requested_db_uuid;