From: Jani Nikula Date: Sat, 8 Feb 2014 19:20:42 +0000 (+0200) Subject: lib: make folder: prefix literal X-Git-Tag: 0.18_rc0~98 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=1fa8e40561aafb0ac4f51e0aba171a702b66fd86;hp=1fa8e40561aafb0ac4f51e0aba171a702b66fd86;p=notmuch lib: make folder: prefix literal In xapian terms, convert folder: prefix from probabilistic to boolean prefix, matching the paths, relative from the maildir root, of the message files, ignoring the maildir new and cur leaf directories. folder:foo matches all message files in foo, foo/new, and foo/cur. folder:foo/new does *not* match message files in foo/new. folder:"" matches all message files in the top level maildir and its new and cur subdirectories. This change constitutes a database change: bump the database version and add database upgrade support for folder: terms. The upgrade also adds path: terms. Finally, fix the folder search test for literal folder: search, as some of the folder: matching capabilities are lost in the probabilistic to boolean prefix change. ---