/*
- * rcvpack.c -- append message to a file
- *
- * 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.
- */
+** rcvpack.c -- append message to a file
+**
+** 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/dropsbr.h>
};
/*
- * default format in which to save messages
- */
+** default format in which to save messages
+*/
static int mbx_style = MBOX_FORMAT;
adios (NULL, "-%s unknown", cp);
case HELPSW:
- snprintf (buf, sizeof(buf), "%s [switches] file", invo_name);
+ snprintf (buf, sizeof(buf),
+ "%s [switches] file",
+ invo_name);
print_help (buf, switches, 1);
done (1);
case VERSIONSW:
rewind (stdin);
/* open and lock the file */
- if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot())) == NOTOK)
+ if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot()))
+ == NOTOK)
done (RCV_MBX);
/* append the message */
- if (mbx_copy (file, mbx_style, md, fileno(stdin), 1, NULL, 0) == NOTOK) {
+ if (mbx_copy (file, mbx_style, md, fileno(stdin), 1, NULL, 0)
+ == NOTOK) {
mbx_close (file, md);
done (RCV_MBX);
}