aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-29 20:21:31 +0200
committerDuncaen <mail@duncano.de>2017-03-30 20:28:27 +0200
commit914c0d744bc702532e9acfc87b73a40c001a6ca2 (patch)
tree2d7bf4ea970cdcbb3dc0a604f60a5f9611531c17
parent79d5047cdedc2979f6d36fed66cc9c5d77922724 (diff)
downloadmblaze-914c0d744bc702532e9acfc87b73a40c001a6ca2.tar.gz
mpick: add missing :R msglist type
-rw-r--r--mpick.c1
-rwxr-xr-xt/2000-mpick.t2
2 files changed, 2 insertions, 1 deletions
diff --git a/mpick.c b/mpick.c
index b44d221..3a909c3 100644
--- a/mpick.c
+++ b/mpick.c
@@ -692,6 +692,7 @@ parse_msglist(char *s)
case 'S': flag = FLAG_SEEN; break;
case 'o': n = 1; /* FALL TROUGH */
case 'n': flag = FLAG_NEW; break;
+ case 'R': flag = FLAG_REPLIED; break;
default: parse_error("unknown type at '%.15s'", s);
}
diff --git a/t/2000-mpick.t b/t/2000-mpick.t
index ec5aaec..1078764 100755
--- a/t/2000-mpick.t
+++ b/t/2000-mpick.t
@@ -25,7 +25,7 @@ check_same 'flag seen' 'mlist inbox | mpick :S' 'mlist -S inbox'
check_same 'flag not seen' 'mlist inbox | mpick -t !seen' 'mlist -s inbox'
check_same 'flag seen and trashed' 'mlist inbox | mpick :S :T' 'mlist -ST inbox'
check_same 'flag seen and not trashed' 'mlist inbox | mpick -t "seen && !trashed"' 'mlist -St inbox'
-# check_same 'flag replied' 'mlist inbox | mpick :R' 'mlist -R inbox'
+check_same 'flag replied' 'mlist inbox | mpick :R' 'mlist -R inbox'
check_same 'flag forwarded' 'mlist inbox | mpick :F' 'mlist -F inbox'