Use account ID instead of name in passwordstorerc.
[claws.git] / src / inc.c
index cf86ebd09d038cfa58fbf7e5c18c5f3617bca08d..5e994086c04fad5d3ec6974024de8a9f36e222f1 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -575,8 +575,8 @@ static gint inc_start(IncProgressDialog *inc_dialog)
                                        "pop3", pop3_get_port(pop3_session),
                                        &(pop3_session->pass))) {
                        /* NOP */;
-               } else if ((pop3_session->pass = passwd_store_get(PWS_ACCOUNT,
-                                       pop3_session->ac_prefs->account_name, PWS_ACCOUNT_RECV)) == NULL) {
+               } else if ((pop3_session->pass = passwd_store_get_account(
+                                               pop3_session->ac_prefs->account_id, PWS_ACCOUNT_RECV)) == NULL) {
                        gchar *pass;
 
                        if (inc_dialog->show_dialog)