]> git.notmuchmail.org Git - notmuch/commit - lib/query.cc
lib: generate actual Xapian query for "*" and ""
authorDavid Bremner <david@tethera.net>
Tue, 24 Aug 2021 15:17:30 +0000 (08:17 -0700)
committerDavid Bremner <david@tethera.net>
Sun, 5 Sep 2021 00:07:19 +0000 (17:07 -0700)
commitc62f3f77a7eeda57cff8c5c66e86d39ae3c38aad
treed357fa0bbd9f0aafcdde45cb1d4a623c82639c37
parent1870b3ae4bae5e68296e63acc81965eea04a1a7a
lib: generate actual Xapian query for "*" and ""

The previous code had the somewhat bizarre effect that the (notmuch
specific) query string was "*" (interpreted as MatchAll) and the
allegedly parsed xapian_query was "MatchNothing".

This commit also reduces code duplication.
lib/query.cc