- if (!entire_thread) {
- messages = notmuch_query_search_messages (query);
- if (messages == NULL)
- INTERNAL_ERROR ("No messages.\n");
- show_messages (ctx, messages, 0);
-
- } else {
- for (threads = notmuch_query_search_threads (query);
- notmuch_threads_has_more (threads);
- notmuch_threads_advance (threads))
- {
- thread = notmuch_threads_get (threads);
+ for (threads = notmuch_query_search_threads (query);
+ notmuch_threads_has_more (threads);
+ notmuch_threads_advance (threads))
+ {
+ thread = notmuch_threads_get (threads);