summaryrefslogtreecommitdiff
path: root/mh
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-03-18 23:18:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-03-18 23:18:09 +0000
commit1862cbae7d64ceae8e28691a5d9faad192a4f566 (patch)
tree4b76fc1b75c3b87a6cc2dec56fbc27b8e8cea8fd /mh
parent12754c2721a007a20394a3166eb9d8e76d73a829 (diff)
downloadmailutils-1862cbae7d64ceae8e28691a5d9faad192a4f566.tar.gz
mailutils-1862cbae7d64ceae8e28691a5d9faad192a4f566.tar.bz2
Use mh_create_message_id().
Diffstat (limited to 'mh')
-rw-r--r--mh/send.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/mh/send.c b/mh/send.c
index 1b33dc1fe..45694dab8 100644
--- a/mh/send.c
+++ b/mh/send.c
@@ -317,17 +317,7 @@ open_mailer ()
static void
create_message_id (header_t hdr)
{
- char date[4+2+2+2+2+2+1];
- time_t t = time (NULL);
- struct tm *tm = localtime (&t);
- char *host;
- char *p;
-
- strftime (date, sizeof date, "%Y%m%d%H%M%S", tm);
- mu_get_host_name (&host);
-
- asprintf (&p, "<%s.%lu@%s>", date, (unsigned long) getpid (), host);
- free (host);
+ char *p = mh_create_message_id (0);
header_set_value (hdr, MU_HEADER_MESSAGE_ID, p, 1);
free (p);
}

Return to:

Send suggestions and report system problems to the System administrator.