diff options
| author | David Bremner <david@tethera.net> | 2017-02-15 08:58:28 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-05-09 07:44:15 -0300 |
| commit | eab365c742f86b52729ec2a5acaba1a798f94661 (patch) | |
| tree | 4b01c9b852d8c27fef20a92728496f3b132c0954 /test | |
| parent | 77c9ec1fddcbe145facfc3d65eee55b11ad61fb9 (diff) | |
lib: Add regexp searching for mid: prefix
The bulk of the change is passing in the field options to the regexp
field processor, so that we can properly handle the
fallback (non-regexp case).
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T650-regexp-query.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh index 9599c104..27fc9ab9 100755 --- a/test/T650-regexp-query.sh +++ b/test/T650-regexp-query.sh @@ -104,4 +104,20 @@ Query string was: from:/unbalanced[/ EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "empty mid search" +notmuch search --output=messages mid:yoom > OUTPUT +cp /dev/null EXPECTED +test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "non-empty mid regex search" +notmuch search --output=messages mid:/yoom/ > OUTPUT +test_expect_equal_file cworth.msg-ids OUTPUT + +test_begin_subtest "combine regexp mid and subject" +notmuch search subject:/-C/ and mid:/y..m/ | notmuch_search_sanitize > OUTPUT +cat <<EOF > EXPECTED +thread:XXX 2009-11-18 [1/2] Carl Worth| Jan Janak; [notmuch] [PATCH] Older versions of install do not support -C. (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done |
