summaryrefslogtreecommitdiff
path: root/mh
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-03-19 12:53:35 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-03-19 12:53:35 +0000
commit72eb486c6f5bee8534fc1542cc897c13f7ddfa4d (patch)
treeaa9742788ad13a9cc71a3e2e4ad0a2cb88f3fb31 /mh
parent5eaebe4683fc0a3353cbe6171a59a4654ab985cf (diff)
downloadmailutils-72eb486c6f5bee8534fc1542cc897c13f7ddfa4d.tar.gz
mailutils-72eb486c6f5bee8534fc1542cc897c13f7ddfa4d.tar.bz2
(mh_create_message_id): Minor change.
Diffstat (limited to 'mh')
-rw-r--r--mh/mh_init.c8
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

Return to:

Send suggestions and report system problems to the System administrator.