diff options
author | Duncaen <mail@duncano.de> | 2017-03-29 20:21:31 +0200 |
---|---|---|
committer | Duncaen <mail@duncano.de> | 2017-03-30 20:28:27 +0200 |
commit | 914c0d744bc702532e9acfc87b73a40c001a6ca2 (patch) | |
tree | 2d7bf4ea970cdcbb3dc0a604f60a5f9611531c17 | |
parent | 79d5047cdedc2979f6d36fed66cc9c5d77922724 (diff) | |
download | mblaze-914c0d744bc702532e9acfc87b73a40c001a6ca2.tar.gz mblaze-914c0d744bc702532e9acfc87b73a40c001a6ca2.tar.xz mblaze-914c0d744bc702532e9acfc87b73a40c001a6ca2.zip |
mpick: add missing :R msglist type
-rw-r--r-- | mpick.c | 1 | ||||
-rwxr-xr-x | t/2000-mpick.t | 2 |
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' |