/[mailutils]/mailutils/mh/mh_init.c
ViewVC logotype

Diff of /mailutils/mh/mh_init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37 by gray, Tue Mar 18 23:15:54 2003 UTC revision 1.38 by gray, Wed Mar 19 12:53:35 2003 UTC
# Line 735  mh_draft_name () Line 735  mh_draft_name ()
735  }  }
736    
737  char *  char *
738  mh_create_message_id (int m)  mh_create_message_id (int subpart)
739  {  {
740    char date[4+2+2+2+2+2+1];    char date[4+2+2+2+2+2+1];
741    time_t t = time (NULL);    time_t t = time (NULL);
# Line 746  mh_create_message_id (int m) Line 746  mh_create_message_id (int m)
746    strftime (date, sizeof date, "%Y%m%d%H%M%S", tm);    strftime (date, sizeof date, "%Y%m%d%H%M%S", tm);
747    mu_get_host_name (&host);    mu_get_host_name (&host);
748    
749    if (m)    if (subpart)
750      {      {
751        struct timeval tv;        struct timeval tv;
752        gettimeofday (&tv, NULL);        gettimeofday (&tv, NULL);
753        asprintf (&p, "<%s.%lu.%lu@%s>",        asprintf (&p, "<%s.%lu.%d@%s>",
754                  date,                  date,
                 (unsigned long) tv.tv_usec,  
755                  (unsigned long) getpid (),                  (unsigned long) getpid (),
756                    subpart,
757                  host);                  host);
758      }      }
759    else    else

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26