X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread.cc;h=c8e58c336e46e6dcfc45a15bf78b7182643cb421;hp=9847cf8bfc868d6b63e24a8ff56eb2943e997d36;hb=110694b00b79793b3c09a0349c0ff7608df551d6;hpb=f16944c3b40be414aac85762e2f075a9d1239736 diff --git a/lib/thread.cc b/lib/thread.cc index 9847cf8b..c8e58c33 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -504,6 +504,8 @@ _notmuch_thread_create (void *ctx, * oldest or newest subject is desired. */ notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST); + /* XXX: this should use the _st version, but it needs an error path + */ for (messages = notmuch_query_search_messages (thread_id_query); notmuch_messages_valid (messages); notmuch_messages_move_to_next (messages))