From: Ralph Corderoy Date: Fri, 10 Nov 2017 23:36:23 +0000 (+0000) Subject: folder_addmsg.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/f905c173820a7dae055b083481ab4cd6e6c451a2?hp=8e88279d72a407b373d8b427a0b610e1e5fb3c5b folder_addmsg.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index 024fa1e2..11dd74a9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/h/prototypes.h b/h/prototypes.h index a2cc03e5..f4260b53 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -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); diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index 4ea7cd6d..5de3ccd0 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "folder_addmsg.h" #include "error.h" #include diff --git a/sbr/folder_addmsg.h b/sbr/folder_addmsg.h new file mode 100644 index 00000000..ca5416e1 --- /dev/null +++ b/sbr/folder_addmsg.h @@ -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 *); diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 4b34a25c..469c6801 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -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" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 8f28aa0d..3159d1d2 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -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" diff --git a/uip/refile.c b/uip/refile.c index 654ce10e..28d7ab1f 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -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"