From: Philipp Takacs Date: Wed, 21 Nov 2018 22:23:10 +0000 (+0100) Subject: fix logic bug in pick GREPaction X-Git-Tag: mmh-0.4~10^2~2 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=f826c136f3bee802c63cef0510bcd8de71ccbe84 fix logic bug in pick GREPaction GREPaction now check the header field correct --- 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; }