From: Ralph Corderoy Date: Sat, 11 Nov 2017 23:44:44 +0000 (+0000) Subject: refile.c: Move interface to own file. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c707228802a55a94366874486ac7d36e0b6869e5 refile.c: Move interface to own file. --- diff --git a/Makefile.am b/Makefile.am index a86102a0..0a6c39a1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -417,6 +417,7 @@ noinst_HEADERS = \ sbr/push.h \ sbr/read_line.h \ sbr/readconfig.h \ + sbr/refile.h \ sbr/remdir.h \ sbr/ruserpass.h \ sbr/seq_add.h \ diff --git a/h/prototypes.h b/h/prototypes.h index ee38ef16..55926092 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -65,7 +65,6 @@ void m_unknown2(m_getfld_state_t *); char *nmh_getpass(const char *); int pidwait (pid_t, int); char *r1bindex(char *, int) PURE; -int refile (char **, char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); diff --git a/sbr/refile.c b/sbr/refile.c index de6bd92c..b4442f18 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "refile.h" #include "getcpy.h" #include "context_save.h" #include "arglist.h" diff --git a/sbr/refile.h b/sbr/refile.h new file mode 100644 index 00000000..3930a85f --- /dev/null +++ b/sbr/refile.h @@ -0,0 +1,8 @@ +/* refile.h -- call the "fileproc" to refile the + * -- msg or draft into another 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 refile(char **, char *); diff --git a/uip/comp.c b/uip/comp.c index 2da38010..9a8b3775 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/refile.h" #include "sbr/cpydata.h" #include "sbr/m_draft.h" #include "sbr/m_convert.h" diff --git a/uip/dist.c b/uip/dist.c index 7a7fd011..28217b73 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/refile.h" #include "sbr/cpydata.h" #include "sbr/m_draft.h" #include "sbr/m_convert.h" diff --git a/uip/forw.c b/uip/forw.c index 25d41da0..1dffa975 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/refile.h" #include "sbr/cpydata.h" #include "sbr/cpydgst.h" #include "sbr/m_draft.h" diff --git a/uip/repl.c b/uip/repl.c index 198b3f02..fd9d92d2 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/refile.h" #include "sbr/m_draft.h" #include "sbr/m_convert.h" #include "sbr/getfolder.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index ebccb8c8..459b89b6 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/refile.h" #include "sbr/closefds.h" #include "sbr/copyip.h" #include "sbr/getcpy.h"