int mhl(int, char **);
int mhlsbr(int, char **, FILE *(*)(char *));
int distout (char *, char *, char *);
-void replout (FILE *, char *, char *, struct msgs *, int,
- int, char *, char *, char *, int);
int build_form (char *, char *, int *, char *, char *, char *, char *,
char *, char *);
int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
#include "h/done.h"
#include <h/utils.h>
#include "sbr/m_maildir.h"
+#include "replsbr.h"
#define REPL_SWITCHES \
X("group", 0, GROUPSW) \
{ NULL, 0, 0 }
};
-short ccto = -1; /* global for replsbr */
-short cccc = -1;
-short ccme = -1;
-short querysw = 0;
-
static short outputlinelen = OUTPUTLINELEN;
static bool groupreply; /* Is this a group reply? */
--- /dev/null
+/* replsbr.h -- routines to help repl along...
+ *
+ * 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.
+ */
+
+void replout(FILE *inb, char *msg, char *drft, struct msgs *mp,
+ int outputlinelen, int mime, char *form, char *filter, char *fcc,
+ int fmtproc);
+
+extern short ccto;
+extern short cccc;
+extern short ccme;
+extern short querysw;