X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Fnotmuch.h;h=890183920ba4c2ee4f6cb973c690b5cf63480016;hb=552d9ec9f766762ffdd1f565fc88b0a980f15b39;hp=44263a6663262c6a65ef556658aba26cd8ec69f9;hpb=e70df920851c6c00000b7707e3b61650548fbce7;p=notmuch diff --git a/lib/notmuch.h b/lib/notmuch.h index 44263a66..89018392 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -228,6 +228,10 @@ typedef enum { * No mail root could be deduced from parameters and environment */ NOTMUCH_STATUS_NO_MAIL_ROOT, + /** + * Database is not fully opened, or has been closed + */ + NOTMUCH_STATUS_CLOSED_DATABASE, /** * Not an actual status value. Just a way to find out how many * valid status values there are. @@ -289,6 +293,8 @@ typedef struct _notmuch_indexopts notmuch_indexopts_t; * * NOTMUCH_STATUS_OUT_OF_MEMORY: Out of memory. * + * NOTMUCH_STATUS_PATH_ERROR: filename is too long + * * NOTMUCH_STATUS_FILE_ERROR: An error occurred trying to create the * database file (such as permission denied, or file not found, * etc.), or the database already exists. @@ -1166,7 +1172,10 @@ notmuch_query_search_threads_st (notmuch_query_t *query, notmuch_threads_t **out * * query = notmuch_query_create (database, query_string); * - * for (messages = notmuch_query_search_messages (query); + * if (notmuch_query_search_messages (query, &messages) != NOTMUCH_STATUS_SUCCESS) + * return EXIT_FAILURE; + * + * for (; * notmuch_messages_valid (messages); * notmuch_messages_move_to_next (messages)) * {