Use account ID instead of name in passwordstorerc.
[claws.git] / src / news.c
index cc07d1703c94daacc95654612afd499747eee622..3bfbce46b496a2f3d9b728ccb8705d9c04c7a7ba 100644 (file)
@@ -405,11 +405,12 @@ static Session *news_session_new_for_folder(Folder *folder)
                userid = ac->userid;
                if (password_get(userid, ac->nntp_server, "nntp", port, &passwd)) {
                        /* NOP */;
-               } else if ((passwd = passwd_store_get(PWS_ACCOUNT, ac->account_name,
-                                       PWS_ACCOUNT_RECV)) == NULL)
+               } else if ((passwd = passwd_store_get_account(ac->account_id,
+                                       PWS_ACCOUNT_RECV)) == NULL) {
                        passwd = input_dialog_query_password_keep(ac->nntp_server,
                                                                  userid,
                                                                  &(ac->session_passwd));
+               }
        }
 
        if (session != NULL)