From f826c136f3bee802c63cef0510bcd8de71ccbe84 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Wed, 21 Nov 2018 23:23:10 +0100 Subject: [PATCH] fix logic bug in pick GREPaction GREPaction now check the header field correct --- uip/pick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/pick.c b/uip/pick.c index 12b2bd7..7f0d3a9 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -1095,7 +1095,7 @@ GREPaction(struct field *f, int msgnum, void *data) } /* check for the right field */ - if (g->header && *g->header && mh_strcasecmp(g->header, f->name)==0) { + if (!(g->header && *g->header && mh_strcasecmp(g->header, f->name)==0)) { return FALSE; } -- 1.7.10.4