]> git.cworth.org Git - notmuch/blobdiff - notmuch-show.c
CLI/{count, dump, reindex, reply, show}: enable sexp queries
[notmuch] / notmuch-show.c
index 667fbee822a8d8a71e14213d1c3c6fef8a0137c3..2848c9c39372fcbad778231c625632119b8e4faa 100644 (file)
@@ -1364,11 +1364,11 @@ notmuch_show_command (notmuch_database_t *notmuch, int argc, char *argv[])
        return EXIT_FAILURE;
     }
 
-    query = notmuch_query_create (notmuch, query_string);
-    if (query == NULL) {
-       fprintf (stderr, "Out of memory\n");
+    status = notmuch_query_create_with_syntax (notmuch, query_string,
+                                              shared_option_query_syntax (),
+                                              &query);
+    if (print_status_database ("notmuch show", notmuch, status))
        return EXIT_FAILURE;
-    }
 
     notmuch_query_set_sort (query, sort);