]> git.notmuchmail.org Git - notmuch/commit
Allow lone "not" search operators
authorAdrian Perez <aperez@igalia.com>
Thu, 19 Nov 2009 00:07:22 +0000 (01:07 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 19 Nov 2009 00:42:31 +0000 (01:42 +0100)
commite5da2b701fc172d2255f205414f18c40f4343fbb
tree0e2e7769b776169cd7ee7ee320c28a6c4ea4db58
parentb6c4978fda90115caf560c0ef1c05251cbb977fd
Allow lone "not" search operators

As suggested by Keith in FLAG_PURE_NOT allows for expressions like:

  notmuch search NOT tag:inbox

Note that this way a search like:

  notmuch search foobar NOT tag:inbox

should not be written instead:

  notmuch search foobar AND NOT tag:inbox

In my opinion, the latter feels more natural and is somewhat more explicit.
It gives a better clue of what the search is about instead of assuming that
an implicit AND operator is there.
lib/query.cc