diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-19 12:53:35 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-19 12:53:35 +0000 |
commit | 72eb486c6f5bee8534fc1542cc897c13f7ddfa4d (patch) | |
tree | aa9742788ad13a9cc71a3e2e4ad0a2cb88f3fb31 | |
parent | 5eaebe4683fc0a3353cbe6171a59a4654ab985cf (diff) | |
download | mailutils-72eb486c6f5bee8534fc1542cc897c13f7ddfa4d.tar.gz mailutils-72eb486c6f5bee8534fc1542cc897c13f7ddfa4d.tar.bz2 |
(mh_create_message_id): Minor change.
-rw-r--r-- | mh/mh_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mh/mh_init.c b/mh/mh_init.c index 711575072..12267381a 100644 --- a/mh/mh_init.c +++ b/mh/mh_init.c @@ -735,7 +735,7 @@ mh_draft_name () } char * -mh_create_message_id (int m) +mh_create_message_id (int subpart) { char date[4+2+2+2+2+2+1]; time_t t = time (NULL); @@ -746,14 +746,14 @@ mh_create_message_id (int m) strftime (date, sizeof date, "%Y%m%d%H%M%S", tm); mu_get_host_name (&host); - if (m) + if (subpart) { struct timeval tv; gettimeofday (&tv, NULL); - asprintf (&p, "<%s.%lu.%lu@%s>", + asprintf (&p, "<%s.%lu.%d@%s>", date, - (unsigned long) tv.tv_usec, (unsigned long) getpid (), + subpart, host); } else |