]> git.notmuchmail.org Git - notmuch/commit
lib: add support for path: prefix searches
authorJani Nikula <jani@nikula.org>
Sat, 8 Feb 2014 18:50:44 +0000 (20:50 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 11 Mar 2014 22:51:22 +0000 (19:51 -0300)
commit59823f964250be6d0ddbdfc45d4b07803bab267d
tree8f43becd4d0290632e8dea7532c54792157bf6a1
parent4d150eba6775d9c34276547c7ae248a8ec4e6107
lib: add support for path: prefix searches

The path: prefix is a literal boolean prefix matching the paths,
relative from the maildir root, of the message files.

path:foo matches all message files in foo (but not in foo/new or
foo/cur).

path:foo/new matches all message files in foo/new.

path:"" matches all message files in the top level maildir.

path:foo/** matches all message files in foo and recursively in all
subdirectories of foo.

path:** matches all message files recursively, i.e. all messages.
lib/database.cc
lib/message.cc