/*
- * 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 <h/mh.h>
#include <h/mts.h>
};
/*
- * 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
/*
- * static prototypes
- */
+** static prototypes
+*/
static int donote (char *, int);
static int checkmail (char *, char *, int, int, int);
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;
}
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;
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)
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;