talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 6b3b78d5aaf0907ff0f2b78cd22d8381d0283594
parent e8441939aba29a2979f15298331fabf90a706cbc
Author: paul <paul@claws-mail.org>
Date:   Sat,  7 Aug 2021 17:05:05 +0100

when using 'hide_timezone' use UTC when generating MessageID

Diffstat:
Msrc/prefs_account.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/prefs_account.c b/src/prefs_account.c @@ -6032,7 +6032,8 @@ gchar *prefs_account_generate_msgid(PrefsAccount *account) while (strchr(addr, '@') != NULL && strchr(addr, '@') != strrchr(addr, '@')) *(strchr(addr, '@')) = '_'; - now = g_date_time_new_now_local(); + now = (prefs_common.hide_timezone)? g_date_time_new_now_utc() : + g_date_time_new_now_local(); tmbuf = g_date_time_format(now, "%Y%m%d%H%M%S"); buf = g_strdup_printf("%s.%08x%s", tmbuf, (guint)rand(), addr);