mblaze

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

commit 9ac7a2aeb7d17fdfcb68cc2892870eed021d86d1
parent 610db145824459a0a77f96dc827831883490b77d
Author: Duncaen <mail@duncano.de>
Date:   Fri, 29 Jul 2016 04:31:34 +0200

mpick: fixes

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

diff --git a/mpick.c b/mpick.c @@ -679,7 +679,7 @@ parse_msglist(char *s) case 'S': flag = FLAG_SEEN; break; case 'o': n = 1; /* FALL TROUGH */ case 'n': flag = FLAG_NEW; break; - default: parse_error("unknown type at '%.15s'", s); + default: flag = 0; parse_error("unknown type at '%.15s'", s); } e1 = mkexpr(EXPR_ANYSET); @@ -811,7 +811,7 @@ eval(struct expr *e, struct mailinfo *m) switch (e->b.var) { case VAR_CUR: if (!cur_idx) - num = (EXPR_LT || EXPR_LE) ? LONG_MAX : -1; + num = (e->op == EXPR_LT || e->op == EXPR_LE) ? LONG_MAX : -1; else num = cur_idx; break;