summary refs log tree commit diff
path: root/t/2000-mpick.t
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-04-17 02:54:22 +0200
committerDuncaen <mail@duncano.de>2017-04-17 03:01:57 +0200
commit9bec745dde6a85b16d2bb87a4ab1c86961e5d950 (patch)
tree6113d3dfb054ac3f858718e4f86705a0e3e5e95d /t/2000-mpick.t
parent2895704eee6330cb549964de2d8b662040010fdd (diff)
downloadmblaze-9bec745dde6a85b16d2bb87a4ab1c86961e5d950.tar.gz
mblaze-9bec745dde6a85b16d2bb87a4ab1c86961e5d950.tar.xz
mblaze-9bec745dde6a85b16d2bb87a4ab1c86961e5d950.zip
mpick: allow string expressions on any header
Diffstat (limited to 't/2000-mpick.t')
-rwxr-xr-xt/2000-mpick.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/2000-mpick.t b/t/2000-mpick.t
index 26735d0..8e32aec 100755
--- a/t/2000-mpick.t
+++ b/t/2000-mpick.t
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 cd ${0%/*}
 . ./lib.sh
-plan 12
+plan 13
 
 rm -rf test.dir
 mkdir test.dir
@@ -52,6 +52,7 @@ From: Obvious spam <script@kiddy.com>
 Subject: look at this awesome pdf
 Date: Thu, 30 Mar 2017 15:42:05 +0200
 Message-Id: <EOH1F3NUOY.2KBVMHSBFATNY@example.org>
+Foo: bar
 
 Check my resume!
 
@@ -64,5 +65,6 @@ check 'search subject' 'mlist inbox | mpick /wow | grep -q inbox/cur/9:2,'
 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'
 
 )