X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-show.c;h=e05480899b33e9cfbc3809f37e9e8c2b6cc8b3de;hp=43560256a7c41a674f44882b10762f55460724dc;hb=6cdd34a4c762c954426f586d514a3e041c1db3b0;hpb=dca72205ab550a6adb22a763a3f86083907b1eba diff --git a/notmuch-show.c b/notmuch-show.c index 43560256..e0548089 100644 --- a/notmuch-show.c +++ b/notmuch-show.c @@ -895,13 +895,17 @@ do_show_single (void *ctx, { notmuch_messages_t *messages; notmuch_message_t *message; + notmuch_status_t status; if (notmuch_query_count_messages (query) != 1) { fprintf (stderr, "Error: search term did not match precisely one message.\n"); return 1; } - messages = notmuch_query_search_messages (query); + status = notmuch_query_search_messages_st (query, &messages); + if (print_status_query ("notmuch show", query, status)) + return 1; + message = notmuch_messages_get (messages); if (message == NULL) { @@ -928,8 +932,8 @@ do_show (void *ctx, notmuch_messages_t *messages; notmuch_status_t status, res = NOTMUCH_STATUS_SUCCESS; - threads = notmuch_query_search_threads (query); - if (! threads) + status= notmuch_query_search_threads_st (query, &threads); + if (print_status_query ("notmuch show", query, status)) return 1; sp->begin_list (sp);