diff options
author | Duncaen <mail@duncano.de> | 2019-01-29 14:07:55 +0100 |
---|---|---|
committer | Leah Neukirchen <chneukirchen@gmail.com> | 2020-05-15 18:41:13 +0200 |
commit | 8ae4801dd4f98a6d946b3fddce4f4078015068cd (patch) | |
tree | 2b96c67868d909fbd5a7c06b44ea4694c5ecb63f /t | |
parent | 32f0fcbc0d69e3dc1ee6d635ec64fcbdbfc0d132 (diff) | |
download | mblaze-8ae4801dd4f98a6d946b3fddce4f4078015068cd.tar.gz mblaze-8ae4801dd4f98a6d946b3fddce4f4078015068cd.tar.xz mblaze-8ae4801dd4f98a6d946b3fddce4f4078015068cd.zip |
mpick: add header decodeop for better address matching
Diffstat (limited to 't')
-rwxr-xr-x | t/2000-mpick.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/2000-mpick.t b/t/2000-mpick.t index 8e32aec..9af444d 100755 --- a/t/2000-mpick.t +++ b/t/2000-mpick.t @@ -1,7 +1,7 @@ #!/bin/sh -e cd ${0%/*} . ./lib.sh -plan 13 +plan 15 rm -rf test.dir mkdir test.dir @@ -66,5 +66,7 @@ check_test 'search addr' -eq 2 'mlist inbox | mpick peter@example.org | wc -l' check_test 'search name' -eq 2 'mlist inbox | mpick "Peter Example" | wc -l' check_test 'search spam' -eq 1 'mlist inbox | mpick -t "trashed && subject =~ \"pdf\"" | wc -l' check_test 'any header' -eq 1 'mlist inbox | mpick -t "\"Foo\" =~~ \"bar\"" | wc -l' +check_test 'addr decode addr' -eq 2 'mlist inbox | mpick -t "from.addr == \"peter@example.org\"" | wc -l' +check_test 'addr decode disp' -eq 2 'mlist inbox | mpick -t "from.disp == \"Peter Example\"" | wc -l' ) |