From: Thomas Roessler Date: Sun, 28 Oct 2001 09:17:30 +0000 (+0000) Subject: Use GMT for message-IDs. Note: The addition of the constant string X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=548a191d0b090aace473c5481dcbe049154f91f5;p=neomutt Use GMT for message-IDs. Note: The addition of the constant string "GMT" is so intended to avoid the production of duplicate message-IDs when mutts running in time zones ahead GMT are updated. --- diff --git a/sendlib.c b/sendlib.c index 443ea981d..dab6cf188 100644 --- 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;