Commit 72eb486c 72eb486c6f5bee8534fc1542cc897c13f7ddfa4d by Sergey Poznyakoff

(mh_create_message_id): Minor change.

1 parent 5eaebe46
...@@ -735,7 +735,7 @@ mh_draft_name () ...@@ -735,7 +735,7 @@ mh_draft_name ()
735 } 735 }
736 736
737 char * 737 char *
738 mh_create_message_id (int m) 738 mh_create_message_id (int subpart)
739 { 739 {
740 char date[4+2+2+2+2+2+1]; 740 char date[4+2+2+2+2+2+1];
741 time_t t = time (NULL); 741 time_t t = time (NULL);
...@@ -746,14 +746,14 @@ mh_create_message_id (int m) ...@@ -746,14 +746,14 @@ mh_create_message_id (int m)
746 strftime (date, sizeof date, "%Y%m%d%H%M%S", tm); 746 strftime (date, sizeof date, "%Y%m%d%H%M%S", tm);
747 mu_get_host_name (&host); 747 mu_get_host_name (&host);
748 748
749 if (m) 749 if (subpart)
750 { 750 {
751 struct timeval tv; 751 struct timeval tv;
752 gettimeofday (&tv, NULL); 752 gettimeofday (&tv, NULL);
753 asprintf (&p, "<%s.%lu.%lu@%s>", 753 asprintf (&p, "<%s.%lu.%d@%s>",
754 date, 754 date,
755 (unsigned long) tv.tv_usec,
756 (unsigned long) getpid (), 755 (unsigned long) getpid (),
756 subpart,
757 host); 757 host);
758 } 758 }
759 else 759 else
......