Fix bug #3705: active account Mail Address corrupted…
authorRicardo Mones <ricardo@mones.org>
Wed, 5 Oct 2016 07:51:31 +0000 (09:51 +0200)
committerRicardo Mones <ricardo@mones.org>
Wed, 5 Oct 2016 07:51:31 +0000 (09:51 +0200)
…when address in Message-ID is used

src/prefs_account.c

index 5bd2afd..1b8c7d2 100644 (file)
@@ -4911,7 +4911,7 @@ gchar *prefs_account_generate_msgid(PrefsAccount *account)
 {
        gchar *addr, *tmbuf, *buf = NULL;
        GDateTime *now;
-       gchar *user_addr = account->msgid_with_addr ? account->address : NULL;
+       gchar *user_addr = account->msgid_with_addr ? g_strdup(account->address) : NULL;
 
        if (account->set_domain && account->domain) {
                buf = g_strdup(account->domain);