[Commits] [SCM] claws branch, master, updated. 3.18.0-29-g6b3b78d5a

paul at claws-mail.org paul at claws-mail.org
Sat Aug 7 18:06:05 CEST 2021


The branch, master has been updated
       via  6b3b78d5aaf0907ff0f2b78cd22d8381d0283594 (commit)
      from  e8441939aba29a2979f15298331fabf90a706cbc (commit)

Summary of changes:
 src/prefs_account.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 6b3b78d5aaf0907ff0f2b78cd22d8381d0283594
Author: paul <paul at claws-mail.org>
Date:   Sat Aug 7 17:05:05 2021 +0100

    when using 'hide_timezone' use UTC when generating MessageID

diff --git a/src/prefs_account.c b/src/prefs_account.c
index ae6b10bbf..7ac85e76e 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list