mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 914c0d744bc702532e9acfc87b73a40c001a6ca2
parent 79d5047cdedc2979f6d36fed66cc9c5d77922724
Author: Duncaen <mail@duncano.de>
Date:   Wed, 29 Mar 2017 20:21:31 +0200

mpick: add missing :R msglist type

Diffstat:
mpick.c | 1+
t/2000-mpick.t | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 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 @@ -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'