Migrate SpamReport passwords to password store correctly.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 30 Mar 2016 21:02:14 +0000 (23:02 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 30 Mar 2016 21:05:35 +0000 (23:05 +0200)
src/plugins/spam_report/spam_report_prefs.c

index 1aaf293..86dd190 100644 (file)
@@ -91,8 +91,8 @@ void spamreport_prefs_init(void)
        /* Move passwords that are still in main config to password store. */
        for (i = 0; i < INTF_LAST; i++) {
                if (spamreport_prefs.pass[i] != NULL) {
-                       spamreport_passwd_set(spam_interfaces[i].name,
-                                       spamreport_prefs.pass[i]);
+                       passwd_store_set(PWS_PLUGIN, "SpamReport",
+                                       spam_interfaces[i].name, spamreport_prefs.pass[i], TRUE);
                        passwords_migrated = TRUE;
                }
        }