-/*
- * message-id.c -- construct the body of a Message-ID or Content-ID
+/* message_id.c -- construct the body of a Message-ID or Content-ID
* header field
*
* This code is Copyright (c) 2012, by the authors of nmh. See the
*/
#include <h/mh.h>
-#include <unistd.h> /* for getpid() */
+#include "m_rand.h"
#include <sys/time.h> /* for gettimeofday() */
-#include <stdio.h>
static enum {
/* Convert name of message id style to integer value and store it. */
int
save_message_id_style (const char *value) {
- if (! mh_strcasecmp (value, "localname")) {
+ if (! strcasecmp (value, "localname")) {
message_id_style = NMH_MESSAGE_ID_LOCALNAME;
return 0;
- } else if (! mh_strcasecmp (value, "random")) {
+ }
+ if (! strcasecmp (value, "random")) {
message_id_style = NMH_MESSAGE_ID_RANDOM;
return 0;
- } else {
- return 1;
}
+ return 1;
}