From ce71581001a5f29fd14a21aba44e38bdc5787275 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 9 Nov 2010 09:26:03 +0000 Subject: clear temporary password if authentication fails. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2714 ee746299-78ed-0310-b773-934348b2243d --- src/rpop3.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/rpop3.c b/src/rpop3.c index edb2d183..001b9702 100644 --- a/src/rpop3.c +++ b/src/rpop3.c @@ -298,6 +298,13 @@ gint rpop3_account(PrefsAccount *account) while (!rpop3_window.finished) gtk_main_iteration(); + if (POP3_SESSION(session)->error_val == PS_AUTHFAIL && + account->tmp_pass) { + debug_print("rpop3_account: remove temporary password because of authentication failure\n"); + g_free(account->tmp_pass); + account->tmp_pass = NULL; + } + rpop3_idle(FALSE); session_destroy(session); rpop3_clear_list(); -- cgit v1.2.3