Make POP3 use password store too.
authorAndrej Kacian <ticho@claws-mail.org>
Wed, 2 Mar 2016 12:59:35 +0000 (13:59 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Wed, 2 Mar 2016 12:59:35 +0000 (13:59 +0100)
src/inc.c

index c4f82c2..cf86ebd 100644 (file)
--- a/src/inc.c
+++ b/src/inc.c
@@ -59,7 +59,7 @@
 #include "log.h"
 #include "hooks.h"
 #include "logwindow.h"
-#include "password.h"
+#include "passwordstore.h"
 
 extern SessionStats session_stats;
 
@@ -575,10 +575,8 @@ static gint inc_start(IncProgressDialog *inc_dialog)
                                        "pop3", pop3_get_port(pop3_session),
                                        &(pop3_session->pass))) {
                        /* NOP */;
-               } else if (pop3_session->ac_prefs->passwd)
-                       pop3_session->pass =
-                               password_decrypt(pop3_session->ac_prefs->passwd, NULL);
-               else {
+               } else if ((pop3_session->pass = passwd_store_get(PWS_ACCOUNT,
+                                       pop3_session->ac_prefs->account_name, PWS_ACCOUNT_RECV)) == NULL) {
                        gchar *pass;
 
                        if (inc_dialog->show_dialog)