X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhbuildsbr.c;h=0ebdaba6623722515119be86400d9884681866ec;hb=9f8f8b1e1d553774865f2c177191c359c3dc652c;hp=00a940834a0ed2bff52b655619adac3ed5b48b0b;hpb=7946a8c713bd43a52229345ad0289aaa461acfb3;p=mmh diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 00a9408..0ebdaba 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -895,20 +895,19 @@ use_forw: static void set_id (CT ct, int top) { - char msgid[BUFSIZ]; + char contentid[BUFSIZ]; static int partno; static time_t clock = 0; static char *msgfmt; if (clock == 0) { time (&clock); - snprintf (msgid, sizeof(msgid), "<%d.%ld.%%d@%s>\n", - (int) getpid(), (long) clock, LocalName(1)); + snprintf (contentid, sizeof(contentid), "%s\n", message_id (clock, 1)); partno = 0; - msgfmt = getcpy(msgid); + msgfmt = getcpy(contentid); } - snprintf (msgid, sizeof(msgid), msgfmt, top ? 0 : ++partno); - ct->c_id = getcpy (msgid); + snprintf (contentid, sizeof(contentid), msgfmt, top ? 0 : ++partno); + ct->c_id = getcpy (contentid); }