-
-/*
- * folder_addmsg.c -- Link message into folder
+/* folder_addmsg.c -- Link message into 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 "h/mh.h"
+#include "m_name.h"
+#include "cpydata.h"
+#include "m_atoi.h"
+#include "ext_hook.h"
+#include "folder_realloc.h"
+#include "folder_addmsg.h"
+#include "error.h"
#include <fcntl.h>
/*
*/
if (msgnum > mp->hghoff) {
if (!(mp = folder_realloc (mp, mp->lowoff, msgnum + 100))) {
- advise (NULL, "unable to allocate folder storage");
+ inform("unable to allocate folder storage");
return -1;
}
*mpp = mp;
} else if (msgnum < mp->lowoff) {
if (!(mp = folder_realloc (mp, msgnum, mp->hghoff))) {
- advise (NULL, "unable to allocate folder storage");
+ inform("unable to allocate folder storage");
return -1;
}
*mpp = mp;
*/
if (linkerr == EXDEV || linkerr == EPERM) {
if (stat (newmsg, &st1) == 0) {
- advise (NULL, "message %s:%s already exists", mp->foldpath, newmsg);
+ inform("message %s:%s already exists", mp->foldpath, newmsg);
return -1;
}