# this file should be kept in sync with ../../../version
-__VERSION__ = '0.24'
+__VERSION__ = '0.24.1'
SOVERSION = '5'
+notmuch (0.24.1-1) UNRELEASED; urgency=medium
+
+ * Restore Xapian wildcard queries to from: and subject:
+
+ -- David Bremner <bremner@debian.org> Sat, 25 Mar 2017 11:21:34 -0300
+
notmuch (0.24-1) experimental; urgency=medium
* New upstream release
} else {
/* TODO replace this with a nicer API level triggering of
* phrase parsing, when possible */
- std::string quoted='"' + str + '"';
- return parser.parse_query (quoted, NOTMUCH_QUERY_PARSER_FLAGS, term_prefix);
+ std::string query_str;
+
+ if (str.find (' ') != std::string::npos)
+ query_str = '"' + str + '"';
+ else
+ query_str = str;
+
+ return parser.parse_query (query_str, NOTMUCH_QUERY_PARSER_FLAGS, term_prefix);
}
}
#endif
notmuch search --output=messages from:cworth > cworth.msg-ids
+test_begin_subtest "xapian wildcard search for from:"
+notmuch search --output=messages 'from:cwo*' > OUTPUT
+test_expect_equal_file cworth.msg-ids OUTPUT
+
+test_begin_subtest "xapian wildcard search for subject:"
+test_expect_equal $(notmuch count 'subject:count*') 1
+
test_begin_subtest "regexp from search, case sensitive"
notmuch search --output=messages from:/carl/ > OUTPUT
test_expect_equal_file /dev/null OUTPUT