]> granicus.if.org Git - neomutt/commitdiff
Use GMT for message-IDs. Note: The addition of the constant string
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Oct 2001 09:17:30 +0000 (09:17 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Oct 2001 09:17:30 +0000 (09:17 +0000)
"GMT" is so intended to avoid the production of duplicate
message-IDs when mutts running in time zones ahead GMT are updated.

sendlib.c

index 443ea981dd5c0a4a27df826c4142fa6ecc652737..dab6cf1880d08f34cfaa1c4fb1464e6998bb604b 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -1741,11 +1741,11 @@ char *mutt_gen_msgid (void)
   const char *fqdn;
 
   now = time (NULL);
-  tm = localtime (&now);
+  tm = gmtime (&now);
   if(!(fqdn = mutt_fqdn(0)))
     fqdn = NONULL(Hostname);
 
-  snprintf (buf, sizeof (buf), "<%d%02d%02d%02d%02d%02d.%c%d@%s>",
+  snprintf (buf, sizeof (buf), "<%d%02d%02d%02d%02d%02dGMT.%c%d@%s>",
            tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour,
            tm->tm_min, tm->tm_sec, MsgIdPfx, getpid (), fqdn);
   MsgIdPfx = (MsgIdPfx == 'Z') ? 'A' : MsgIdPfx + 1;