X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e121e49643a86c4e7fb34dd75ed1542759aa16c9..cc9d0626d137ec556f12d133cf106ac7c4c5b5a7:/uip/slocal.c diff --git a/uip/slocal.c b/uip/slocal.c index b1760081..6bf3e159 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++; }