X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..6fd1d18f:/uip/rcvstore.c?ds=inline diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 65fe41d3..02388188 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -1,5 +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 @@ -10,6 +9,11 @@ #include #include #include +#include "h/done.h" +#include +#include "sbr/m_maildir.h" +#include "sbr/m_mktemp.h" +#include "sbr/makedir.h" #define RCVSTORE_SWITCHES \ X("create", 0, CRETSW) \ @@ -55,7 +59,7 @@ main (int argc, char **argv) if (nmh_init(argv[0], 2)) { return 1; } - done=unlink_done; + set_done(unlink_done); mts_init (); arguments = getarguments (invo_name, argc, argv, 1); @@ -120,8 +124,7 @@ main (int argc, char **argv) if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else { adios (NULL, "usage: %s [+folder] [switches]", invo_name); } @@ -221,7 +224,7 @@ main (int argc, char **argv) /* * Clean up and exit */ -static void +static void NORETURN unlink_done(int status) { if (tmpfilenam && *tmpfilenam)