mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
Merge branch 'release'
wildcard search fixes, plus release busywork
This commit is contained in:
commit
d877240f4e
5 changed files with 23 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
|||
# this file should be kept in sync with ../../../version
|
||||
__VERSION__ = '0.24'
|
||||
__VERSION__ = '0.24.1'
|
||||
SOVERSION = '5'
|
||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -158,8 +158,14 @@ RegexpFieldProcessor::operator() (const std::string & str)
|
|||
} 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
|
||||
|
|
|
@ -11,6 +11,13 @@ fi
|
|||
|
||||
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
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
0.24
|
||||
0.24.1
|
||||
|
|
Loading…
Reference in a new issue