fix logic bug in pick GREPaction
[mmh] / uip / pick.c
index 12b2bd7..7f0d3a9 100644 (file)
@@ -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;
        }