X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=6bf3e15971b11edfdf444e9ef0986a0a4397d4c4;hp=b17600810f82e0cf4698ed56579d8639ed79128a;hb=571c5da9d8529e029fb478ee1f47057e0ebb6762;hpb=f292123e4a8ff7bf829d2954ec838f677043ebd4 diff --git a/uip/slocal.c b/uip/slocal.c index b176008..6bf3e15 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -460,7 +460,7 @@ localmail (int fd, char *mdlvr) static int usr_delivery (int fd, char *delivery, int su) { - int i, accept, status, won, vecp, next; + int i, accept, status=1, won, vecp, next; char *field, *pattern, *action, *result, *string; char buffer[BUFSIZ], tmpbuf[BUFSIZ]; char *cp, *vec[NVEC]; @@ -664,6 +664,8 @@ usr_delivery (int fd, char *delivery, int su) break; } + if (status) next = 0; /* action failed, mark for 'N' result */ + if (accept && status == 0) won++; }