]> git.notmuchmail.org Git - notmuch/blobdiff - lib/query.cc
query.cc: allow to return query results unsorted
[notmuch] / lib / query.cc
index 10f8dc8a1a7aa0ade1ced3ff129e6cf1143d574f..7e1b6b52984330d82f6c82462f64d02c2450f0f4 100644 (file)
@@ -148,6 +148,8 @@ notmuch_query_search_messages (notmuch_query_t *query)
        case NOTMUCH_SORT_MESSAGE_ID:
            enquire.set_sort_by_value (NOTMUCH_VALUE_MESSAGE_ID, FALSE);
            break;
+        case NOTMUCH_SORT_UNSORTED:
+           break;
        }
 
 #if DEBUG_QUERY
@@ -299,7 +301,8 @@ notmuch_threads_get (notmuch_threads_t *threads)
     return _notmuch_thread_create (threads->query,
                                   threads->query->notmuch,
                                   threads->thread_id,
-                                  threads->query->query_string);
+                                  threads->query->query_string,
+                                  threads->query->sort);
 }
 
 void