diff options
| author | Kevin Boulain <kevin@boula.in> | 2023-02-27 13:06:29 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2023-02-27 08:34:38 -0400 |
| commit | d86e03c786ec51e2ca4af4e7c756cd19adbe17a8 (patch) | |
| tree | 521bd458dd6e2fe9633a8d378592938a08e9dabd /lib/notmuch.h | |
| parent | 48d774bbf4dc6e442e1be96aab712947b408fc5a (diff) | |
lib/notmuch: update example
Likely missed in 86cbd215e, when notmuch_query_search_messages_st was
renamed to notmuch_query_search_messages.
Diffstat (limited to 'lib/notmuch.h')
| -rw-r--r-- | lib/notmuch.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index ce375c04..89018392 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -1172,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)) * { |
