[Commits] [SCM] claws branch, master, updated. 3.13.2-79-ga3c5626
ticho at claws-mail.org
ticho at claws-mail.org
Sat Mar 19 20:50:31 CET 2016
The branch, master has been updated
via a3c5626ea100e08d637d69a680003a5e4a03791b (commit)
from 125b18131c0e9f3b1d71e56134380bdbc71e0820 (commit)
Summary of changes:
src/plugins/gdata/cm_gdata_contacts.c | 1 +
src/plugins/gdata/gdata_plugin.c | 1 +
src/plugins/spam_report/spam_report_prefs.c | 6 ++++++
src/prefs_account.c | 2 ++
4 files changed, 10 insertions(+)
- Log -----------------------------------------------------------------
commit a3c5626ea100e08d637d69a680003a5e4a03791b
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sat Mar 19 20:50:04 2016 +0100
Write passwordstore into file more often, not just at exit.
diff --git a/src/plugins/gdata/cm_gdata_contacts.c b/src/plugins/gdata/cm_gdata_contacts.c
index fb75263..46c3385 100644
--- a/src/plugins/gdata/cm_gdata_contacts.c
+++ b/src/plugins/gdata/cm_gdata_contacts.c
@@ -644,6 +644,7 @@ void cm_gdata_contacts_done(void)
memset(pass, 0, strlen(pass));
g_free(pass);
}
+ passwd_store_write_config();
#endif
g_object_unref(G_OBJECT(authorizer));
diff --git a/src/plugins/gdata/gdata_plugin.c b/src/plugins/gdata/gdata_plugin.c
index 99303a1..3e3e70c 100644
--- a/src/plugins/gdata/gdata_plugin.c
+++ b/src/plugins/gdata/gdata_plugin.c
@@ -127,6 +127,7 @@ gint plugin_init(gchar **error)
if(cm_gdata_config.oauth2_refresh_token != NULL) {
passwd_store_set(PWS_PLUGIN, "GData", GDATA_TOKEN_PWD_STRING,
cm_gdata_config.oauth2_refresh_token, FALSE);
+ passwd_store_write_config();
}
cm_gdata_prefs_init();
diff --git a/src/plugins/spam_report/spam_report_prefs.c b/src/plugins/spam_report/spam_report_prefs.c
index 617794a..b8b17b9 100644
--- a/src/plugins/spam_report/spam_report_prefs.c
+++ b/src/plugins/spam_report/spam_report_prefs.c
@@ -77,6 +77,7 @@ void spamreport_prefs_init(void)
static gchar *path[3];
gchar *rcpath;
guint i;
+ gboolean passwords_migrated = FALSE;
path[0] = _("Plugins");
path[1] = _("SpamReport");
@@ -93,8 +94,11 @@ void spamreport_prefs_init(void)
strlen(spamreport_prefs.pass[i]) > 0) {
spamreport_passwd_set(spam_interfaces[i].name,
spamreport_prefs.pass[i]);
+ passwords_migrated = TRUE;
}
}
+ if (passwords_migrated)
+ passwd_store_write_config();
spamreport_prefs_page.page.path = path;
spamreport_prefs_page.page.create_widget = create_spamreport_prefs_page;
@@ -243,4 +247,6 @@ static void save_spamreport_prefs(PrefsPage *page)
prefs_file_close_revert(pref_file);
} else
prefs_file_close(pref_file);
+
+ passwd_store_write_config();
}
diff --git a/src/prefs_account.c b/src/prefs_account.c
index 1d9b412..f31db87 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -3693,6 +3693,8 @@ void prefs_account_write_config_all(GList *account_list)
if (prefs_file_close(pfile) < 0)
g_warning("failed to write configuration to file");
+
+ passwd_store_write_config();
}
#undef WRITE_PARAM
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list