X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fparse-sexp.cc;fp=lib%2Fparse-sexp.cc;h=6814c9fc28009558d2f5603f91c6a747fc699c8f;hp=6282a4560983e40492d5b5625096a9b336df1feb;hb=e7ffb7404163ebb453c96f6af9724e0fba75abb0;hpb=78632345868b5e4753ad402c806c29569946ce89 diff --git a/lib/parse-sexp.cc b/lib/parse-sexp.cc index 6282a456..6814c9fc 100644 --- a/lib/parse-sexp.cc +++ b/lib/parse-sexp.cc @@ -473,6 +473,9 @@ _sexp_parse_range (notmuch_database_t *notmuch, const _sexp_prefix_t *prefix, } from = sx->val; + if (strcmp (from, "*") == 0) + from = ""; + to = from; if (sx->next) { @@ -488,6 +491,8 @@ _sexp_parse_range (notmuch_database_t *notmuch, const _sexp_prefix_t *prefix, } to = sx->next->val; + if (strcmp (to, "*") == 0) + to = ""; } if (strcmp (prefix->name, "date") == 0) {