]> git.notmuchmail.org Git - notmuch/commit - lib/notmuch.h
lib: define notmuch_query_create_with_syntax
authorDavid Bremner <david@tethera.net>
Tue, 24 Aug 2021 15:17:13 +0000 (08:17 -0700)
committerDavid Bremner <david@tethera.net>
Sun, 5 Sep 2021 00:07:19 +0000 (17:07 -0700)
commitc4f2f33a50643b41e6dbf0519c563ae7db48beab
tree9e26ea82062efea11e4131244f378d9b8719bc6f
parent34733fa25ed3ad8bd48621d66b7877af3426f544
lib: define notmuch_query_create_with_syntax

Set the parsing syntax when the (notmuch) query object is
created. Initially the library always returns a trivial query that
matches all messages when using s-expression syntax.

It seems better to select the syntax at query creation time because
the lazy parsing is an implementation detail.
lib/notmuch.h
lib/query.cc