X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmsgchk.c;h=0b2f3eb55c941b64464f36c6612e3d490418e22a;hp=0bec6756167d5fd043724f9386696395705ae9a8;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/uip/msgchk.c b/uip/msgchk.c index 0bec675..0b2f3eb 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -1,10 +1,10 @@ /* - * 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 - * complete copyright information. - */ +** 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 +** complete copyright information. +*/ #include #include @@ -20,16 +20,16 @@ static struct swit switches[] = { { "notify type", 0 }, #define NNOTESW 3 { "nonotify type", 0 }, -#define VERSIONSW 7 +#define VERSIONSW 4 { "version", 0 }, -#define HELPSW 8 +#define HELPSW 5 { "help", 0 }, }; /* - * Maximum numbers of users we can check (plus - * one for the NULL vector at the end). - */ +** Maximum numbers of users we can check (plus +** one for the NULL vector at the end). +*/ #define MAXVEC 51 #define NT_NONE 0x0 @@ -47,8 +47,8 @@ static struct swit switches[] = { /* - * static prototypes - */ +** static prototypes +*/ static int donote (char *, int); static int checkmail (char *, char *, int, int, int); @@ -180,7 +180,8 @@ donote (char *cp, int ntflag) return NT_NMAI; } - return 0; /* Before 1999-07-15, garbage was returned if control got here. */ + /* Before 1999-07-15, garbage was returned if control got here. */ + return 0; } @@ -191,7 +192,9 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal) char buffer[BUFSIZ]; struct stat st; - snprintf (buffer, sizeof(buffer), "%s/%s", mmdfldir[0] ? mmdfldir : home, mmdflfil[0] ? mmdflfil : user); + snprintf (buffer, sizeof(buffer), "%s/%s", + mmdfldir[0] ? mmdfldir : home, + mmdflfil[0] ? mmdflfil : user); if (datesw) { st.st_size = 0; st.st_atime = st.st_mtime = 0; @@ -203,7 +206,8 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal) if (notifysw & NT_MAIL) { printf (personal ? "You have " : "%s has ", user); if (mf & UUCPOK) - printf ("%s old-style bell", mf & UUCPOLD ? "old" : "new"); + printf ("%s old-style bell", + mf & UUCPOLD ? "old" : "new"); if ((mf & UUCPOK) && (mf & MMDFOK)) printf (" and "); if (mf & MMDFOK) @@ -218,7 +222,8 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal) else { if (notifysw & NT_NMAI) printf (personal ? "You don't %s%s" : "%s doesn't %s", - personal ? "" : user, "have any mail waiting"); + personal ? "" : user, + "have any mail waiting"); else notifysw = 0;