sbr/m_popen.h \
sbr/m_rand.h \
sbr/makedir.h \
+ sbr/message_id.h \
thirdparty/jsmn/jsmn.h \
uip/mhfree.h \
uip/mhoutsbr.h \
extern char *ctxpath; /* pathname of user's context */
extern struct node *m_defs; /* list of profile/context entries */
-/* What style to use for generated Message-ID and Content-ID header
- fields. The localname style is pid.time@localname, where time is
- in seconds. The random style replaces the localname with some
- (pseudo)random bytes and uses microsecond-resolution time. */
-int save_message_id_style (const char *);
-char *message_id (time_t, int);
-
/*
* These standard strings are defined in config.c. They are the
* only system-dependent parameters in nmh, and thus by redefining
char *m_name (int);
void m_unknown(m_getfld_state_t *, FILE *);
-char *message_id (time_t, int);
/*
* Return a MIME content-type string for the specified file.
#include <h/mh.h>
#include "m_rand.h"
+#include "message_id.h"
#include <sys/time.h> /* for gettimeofday() */
--- /dev/null
+/* message_id.h -- construct the body of a Message-ID or Content-ID.
+ *
+ * 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.
+ */
+
+/* What style to use for generated Message-ID and Content-ID header
+ * fields. The localname style is pid.time@localname, where time is
+ * in seconds. The random style replaces the localname with some
+ * (pseudo)random bytes and uses microsecond-resolution time. */
+int save_message_id_style(const char *value);
+
+char *message_id(time_t tclock, int content_id);
#include <h/mhparse.h>
#include <h/utils.h>
#include "../sbr/m_mktemp.h"
+#include "../sbr/message_id.h"
#include "mhfree.h"
#include "mhshowsbr.h"
#include <h/tws.h>
#include <h/mts.h>
#include "../sbr/m_mktemp.h"
+#include "../sbr/message_id.h"
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include "../sbr/m_maildir.h"
#include "../sbr/m_mktemp.h"
+#include "../sbr/message_id.h"
#ifdef OAUTH_SUPPORT
static int setup_oauth_params(char *[], int *, const char *, const char **);