From 914c0d744bc702532e9acfc87b73a40c001a6ca2 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 29 Mar 2017 20:21:31 +0200 Subject: [PATCH] mpick: add missing :R msglist type --- mpick.c | 1 + t/2000-mpick.t | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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'