]> diplodocus.org Git - nmh/commitdiff
folder_addmsg.c: Move interface to own file.
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 10 Nov 2017 23:36:23 +0000 (23:36 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 12 Nov 2017 12:25:28 +0000 (12:25 +0000)
Makefile.am
h/prototypes.h
sbr/folder_addmsg.c
sbr/folder_addmsg.h [new file with mode: 0644]
uip/mhstoresbr.c
uip/rcvstore.c
uip/refile.c

index 024fa1e..11dd74a 100644 (file)
@@ -375,6 +375,7 @@ noinst_HEADERS = \
     sbr/context_save.h \
     sbr/ctype-checked.h \
     sbr/error.h \
+    sbr/folder_addmsg.h \
     sbr/lock_file.h \
     sbr/m_maildir.h \
     sbr/m_mktemp.h \
index a2cc03e..f4260b5 100644 (file)
@@ -74,7 +74,6 @@ void escape_display_name (char *, size_t);
 void escape_local_part (char *, size_t);
 int ext_hook(char *, char *, char *);
 int fdcompare (int, int);
-int folder_addmsg (struct msgs **, char *, int, int, int, int, char *);
 int folder_delmsgs (struct msgs *, int, int);
 void folder_free (struct msgs *);
 int folder_pack (struct msgs **, int);
index 4ea7cd6..5de3ccd 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "folder_addmsg.h"
 #include "error.h"
 #include <fcntl.h>
 
diff --git a/sbr/folder_addmsg.h b/sbr/folder_addmsg.h
new file mode 100644 (file)
index 0000000..ca5416e
--- /dev/null
@@ -0,0 +1,7 @@
+/* folder_addmsg.h -- Link message into folder
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information. */
+
+int folder_addmsg(struct msgs **, char *, int, int, int, int, char *);
index 4b34a25..469c680 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_addmsg.h"
 #include "sbr/context_find.h"
 #include "sbr/path.h"
 #include "sbr/error.h"
index 8f28aa0..3159d1d 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_addmsg.h"
 #include "sbr/context_save.h"
 #include "sbr/context_find.h"
 #include "sbr/ambigsw.h"
index 654ce10..28d7ab1 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include "h/mh.h"
+#include "sbr/folder_addmsg.h"
 #include "sbr/context_save.h"
 #include "sbr/context_replace.h"
 #include "sbr/context_find.h"