diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-18 23:18:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-18 23:18:09 +0000 |
commit | 1862cbae7d64ceae8e28691a5d9faad192a4f566 (patch) | |
tree | 4b76fc1b75c3b87a6cc2dec56fbc27b8e8cea8fd /mh | |
parent | 12754c2721a007a20394a3166eb9d8e76d73a829 (diff) | |
download | mailutils-1862cbae7d64ceae8e28691a5d9faad192a4f566.tar.gz mailutils-1862cbae7d64ceae8e28691a5d9faad192a4f566.tar.bz2 |
Use mh_create_message_id().
Diffstat (limited to 'mh')
-rw-r--r-- | mh/send.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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); } |