mblaze

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

commit 48a1779efb686a965148b3fb8228c99d9dbd1594
parent 2526eca7306fd1de2ef7582c2e30db6bdf96a918
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu, 28 Jul 2016 18:00:52 +0200

mpick: add mmsg(7) style ranges to msglist

Diffstat:
man/mpick.1 | 4++--
mpick.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/man/mpick.1 b/man/mpick.1 @@ -32,7 +32,7 @@ see .El .Sh MSGLISTS .Nm -message lists (msglist) mostly compatible with +message lists (msglist) are mostly compatible with .Xr mailx 1 are message specifications used as shortened @@ -42,7 +42,7 @@ and can include: .It Ar n Message number .Ar n . -.It Ar n Ns Cm "-" Ns Ar m +.It Ar n Ns Cm ":" Ns Ar m , Ar n Ns Cm "-" Ns Ar m An inclusive range of message numbers between .Ar n and diff --git a/mpick.c b/mpick.c @@ -671,8 +671,8 @@ parse_msglist(const char *s) default: pos = (char *)s; - if ((d = strchr(s, '-')) && parse_num(&n) && - (pos = (char *)d + 1) && parse_num(&m)) { + if (((d = strchr(s, ':')) || (d = strchr(s, '-'))) + && parse_num(&n) && (pos = (char *)d + 1) && parse_num(&m)) { /* index >= n */ e1 = mkexpr(EXPR_GE); e1->a.prop = PROP_INDEX;