Use account ID instead of name in passwordstorerc.
[claws.git] / src / send_message.c
index 43eef3356560832857dc56f3b96aec42054d5b4c..75bdd2016c184e825abc4b8157c35cc7ffcb3f88 100644 (file)
@@ -305,7 +305,7 @@ gint send_message_smtp_full(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp, g
                                                        &(smtp_session->pass))) {
                                        /* NOP */;
                                } else if ((smtp_session->pass =
-                                               passwd_store_get(PWS_ACCOUNT, ac_prefs->account_name,
+                                               passwd_store_get_account(ac_prefs->account_id,
                                                                PWS_ACCOUNT_SEND)) == NULL) {
                                        smtp_session->pass =
                                                input_dialog_query_password_keep
@@ -323,8 +323,8 @@ gint send_message_smtp_full(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp, g
                                                        ac_prefs->smtp_server, "smtp", port,
                                                        &(smtp_session->pass))) {
                                        /* NOP */;
-                               } else if ((smtp_session->pass = passwd_store_get(PWS_ACCOUNT,
-                                                       ac_prefs->account_name, PWS_ACCOUNT_RECV)) == NULL) {
+                               } else if ((smtp_session->pass = passwd_store_get_account(
+                                                       ac_prefs->account_id, PWS_ACCOUNT_RECV)) == NULL) {
                                        smtp_session->pass =
                                                input_dialog_query_password_keep
                                                        (ac_prefs->smtp_server,