X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c6f2d14d9c38345075629af3487c2de491584ca1..d7b80252561bfbdaacf37e6026e74690a08c2c9c:/uip/distsbr.c diff --git a/uip/distsbr.c b/uip/distsbr.c index 30523778..6fc77372 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -1,6 +1,4 @@ - -/* - * distsbr.c -- routines to do additional "dist-style" processing +/* distsbr.c -- routines to do additional "dist-style" processing * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -56,7 +54,7 @@ distout (char *drft, char *msgnam, char *backup) if (uprf (name, "distribution-")) snprintf (name, sizeof(name), "%s%s", "Resent", &name[12]); if (!uprf (name, "resent")) { - advise (NULL, BADHDR, "draft", name); + inform(BADHDR, "draft", name); goto leave_bad; } if (state == FLD) @@ -74,7 +72,7 @@ distout (char *drft, char *msgnam, char *backup) case BODY: for (dp = buffer; *dp; dp++) if (!isspace ((unsigned char) *dp)) { - advise (NULL, BADTXT, "draft"); + inform(BADTXT, "draft"); goto leave_bad; } @@ -83,7 +81,7 @@ distout (char *drft, char *msgnam, char *backup) case LENERR: case FMTERR: - advise (NULL, BADRFT, "draft"); + inform(BADRFT, "draft"); leave_bad: ; fclose (ifp); fclose (ofp); @@ -102,7 +100,7 @@ process: ; fflush (ofp); if (!resent) { - advise (NULL, BADMSG, "draft"); + inform(BADMSG, "draft"); fclose (ofp); (void) m_unlink (drft); if (rename (backup, drft) == NOTOK)