Make SpamReport plugin use the password store.
[claws.git] / src / plugins / spam_report / spam_report.c
index 177f27952f0ba6f11bdb08aaec474709e73e072f..e1987c53a2dee4ed2abf3cec3d941a5850e7c0ab 100644 (file)
@@ -222,7 +222,7 @@ static void report_spam(gint id, ReportInterface *intf, MsgInfo *msginfo, gchar
        switch(intf->type) {
        case INTF_HTTP_AUTH:
                if (spamreport_prefs.user[id] && *(spamreport_prefs.user[id])) {
-                       gchar *pass = password_decrypt(spamreport_prefs.pass[id], NULL);
+                       gchar *pass = spamreport_passwd_get(spam_interfaces[id].name);
                        auth = g_strdup_printf("%s:%s", spamreport_prefs.user[id], (pass != NULL ? pass : ""));
                        if (pass != NULL) {
                                memset(pass, 0, strlen(pass));
@@ -407,11 +407,6 @@ const gchar *plugin_version(void)
        return VERSION;
 }
 
-void plugin_master_passphrase_change (const gchar *oldp, const gchar *newp)
-{
-       spamreport_master_passphrase_change(oldp, newp);
-}
-
 struct PluginFeature *plugin_provides(void)
 {
        static struct PluginFeature features[] =