X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5cb3431b8210554b89425d60b3c0aa4f521b7414..97bb4983b53b2f67756b0b3cc800105e13bfcddb:/uip/msgchk.c diff --git a/uip/msgchk.c b/uip/msgchk.c index eed61cd2..3bc7f230 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -1,6 +1,4 @@ - -/* - * msgchk.c -- check for mail +/* msgchk.c -- check for mail * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -10,6 +8,7 @@ #include #include #include +#include #include #include @@ -265,7 +264,7 @@ main (int argc, char **argv) if ((pw = getpwnam (vec[vecp]))) status += checkmail (pw->pw_name, pw->pw_dir, datesw, notifysw, 0); else - advise (NULL, "no such user as %s", vec[vecp]); + inform("no such user as %s", vec[vecp]); } } } /* host == NULL */ @@ -389,7 +388,7 @@ remotemail (char *host, char *port, char *user, char *proxy, int notifysw, auth_svc) == NOTOK || pop_stat (&nmsgs, &nbytes) == NOTOK /* check for messages */ || pop_quit () == NOTOK) { /* quit POP connection */ - advise (NULL, "%s", response); + inform("%s", response); return 1; } @@ -401,7 +400,7 @@ remotemail (char *host, char *port, char *user, char *proxy, int notifysw, printf ("%s has ", user); printf ("%d message%s (%d bytes)", - nmsgs, nmsgs != 1 ? "s" : "", nbytes); + nmsgs, PLURALS(nmsgs), nbytes); } else notifysw = 0;