lib: Move notmuch_messages_t code from query.cc to new messages.c
[notmuch] / notmuch-show.c
index 41b33641c67143599c2d4f5b76f8554ade93297b..9f81ae161f1fa4975df8cf721630fbab818539c9 100644 (file)
@@ -153,7 +153,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
        return 1;
     }
 
        return 1;
     }
 
-    for (messages = notmuch_query_search_messages (query);
+    for (messages = notmuch_query_search_messages (query, 0, -1);
         notmuch_messages_has_more (messages);
         notmuch_messages_advance (messages))
     {
         notmuch_messages_has_more (messages);
         notmuch_messages_advance (messages))
     {