X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6fc2909634fb431c65ecfa8b6db4f6519f99b389..39ecf70bb:/uip/rcvstore.c?ds=sidebyside diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 8d11e005..e9654b48 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -1,6 +1,4 @@ - -/* - * rcvstore.c -- asynchronously add mail to a folder +/* 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 @@ -11,6 +9,10 @@ #include #include #include +#include +#include "../sbr/m_maildir.h" +#include "../sbr/m_mktemp.h" +#include "../sbr/makedir.h" #define RCVSTORE_SWITCHES \ X("create", 0, CRETSW) \ @@ -175,7 +177,7 @@ main (int argc, char **argv) /* don't add file if it is empty */ if (st.st_size == 0) { (void) m_unlink (tmpfilenam); - advise (NULL, "empty file"); + inform("empty file"); done (0); } @@ -189,7 +191,7 @@ main (int argc, char **argv) * 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) + if ((msgnum = folder_addmsg (&mp, tmpfilenam, 0, unseensw, 0, 0, NULL)) == -1) done (1); /* @@ -222,7 +224,7 @@ main (int argc, char **argv) /* * Clean up and exit */ -static void +static void NORETURN unlink_done(int status) { if (tmpfilenam && *tmpfilenam)