X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=cb82d61fe424176f4a902194cd48a9858939aab7;hp=5c8213bee7892d602367971cb71c2ab436c0324e;hb=HEAD;hpb=d447b694b498c3e18a22f1eb15139a798c6aab26 diff --git a/notmuch-dump.c b/notmuch-dump.c index 5c8213be..cb82d61f 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -232,11 +232,12 @@ database_dump_file (notmuch_database_t *notmuch, gzFile output, if (! query_str) query_str = ""; - query = notmuch_query_create (notmuch, query_str); - if (query == NULL) { - fprintf (stderr, "Out of memory\n"); + status = notmuch_query_create_with_syntax (notmuch, query_str, + shared_option_query_syntax (), + &query); + if (print_status_database ("notmuch dump", notmuch, status)) return EXIT_FAILURE; - } + /* Don't ask xapian to sort by Message-ID. Xapian optimizes returning the * first results quickly at the expense of total time. */