/*
- * rcvstore.c -- asynchronously add mail to a folder
- *
- * 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.
- */
+** rcvstore.c -- asynchronously add mail to a folder
+**
+** 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 <fcntl.h>
/*
- * name of temporary file to store incoming message
- */
+** name of temporary file to store incoming message
+*/
static char *tmpfilenam = NULL;
static void unlink_done(int) NORETURN;
else
folder = pluspath (cp);
} else {
- adios (NULL, "usage: %s [+folder] [switches]", invo_name);
+ adios (NULL, "usage: %s [+folder] [switches]",
+ invo_name);
}
}
}
/*
- * read folder and create message structure
- */
+ ** read folder and create message structure
+ */
if (!(mp = folder_read (folder)))
adios (NULL, "unable to read folder %s", folder);
/*
- * Link message into folder, and possibly add
- * to the Unseen-Sequence's.
- */
- if ((msgnum = folder_addmsg (&mp, tmpfilenam, 0, unseensw, 0, 0, (char *)0)) == -1)
+ ** Link message into folder, and possibly add
+ ** to the Unseen-Sequence's.
+ */
+ if ((msgnum = folder_addmsg (&mp, tmpfilenam, 0, unseensw, 0, 0,
+ (char *)0)) == -1)
done (1);
/*
- * Add the message to any extra sequences
- * that have been specified.
- */
+ ** Add the message to any extra sequences
+ ** that have been specified.
+ */
for (seqp = 0; seqs[seqp]; seqp++) {
if (!seq_addmsg (mp, seqs[seqp], msgnum, publicsw, zerosw))
done (1);
}
/*
- * Clean up and exit
- */
+** Clean up and exit
+*/
static void
unlink_done(int status)
{