X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread.cc;h=58d88c2d1597145276a83807165d6939ab340bd2;hp=267f4dbaa2bd15a315b6444911483c0b82293503;hb=c1e16435cfe4471c3415d9f625f7230d59c8afb4;hpb=2ce25b93a72b4a8d6daa5321f9ef7df0772a789f diff --git a/lib/thread.cc b/lib/thread.cc index 267f4dba..58d88c2d 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -260,7 +260,7 @@ _notmuch_thread_create (void *ctx, notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST); - for (messages = notmuch_query_search_messages (thread_id_query, 0, -1); + for (messages = notmuch_query_search_messages (thread_id_query); notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) { @@ -271,7 +271,7 @@ _notmuch_thread_create (void *ctx, notmuch_query_destroy (thread_id_query); - for (messages = notmuch_query_search_messages (matched_query, 0, -1); + for (messages = notmuch_query_search_messages (matched_query); notmuch_messages_has_more (messages); notmuch_messages_advance (messages)) {