Commit 8c3ecaf6 authored by Vsevolod Volkov's avatar Vsevolod Volkov

Attached patch fixes the problem described below. It should be

applied to both mutt 1.3/1.4 and 1.5 branches.

> Date: Thu, 11 Apr 2002 16:24:00 -0500
> Subject: mutt 1.3.x / pop
> From: "Ryan O'Hara" <rohara@isis.visi.com>
> To: bcully@users.sourceforge.net
> User-Agent: Mutt/1.3.27i

> Hi. My apologies if this has nothing to do with you. If it does not,
> maybe you could forward it on to someone.

> In mutt 1.3.x I have noticed that if I uses POP to retrieve mail, and
> I enter an incorrect password whem prompted, it will *save* that
> password and keep trying to use it. However, in the 1.2.x versions it
> worked like this: type in wrong POP password, try to connect to POP
> server again and it will ask you (again) for the password. mutt 1.3.x
> does not, it just tries to connect with the wrongs password (which
> just failed).

> This is kinda annoying. Just thought I'd point out this regression.

> Thanks.
> R
parent 70196466
/*
* Copyright (C) 2000-2001 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -572,6 +572,7 @@ void pop_fetch_mail (void)
if (pop_open_connection (pop_data) < 0)
{
mutt_socket_free (pop_data->conn);
FREE (&pop_data);
return;
}
......
/*
* Copyright (C) 2000 Vsevolod Volkov <vvv@mutt.org.ua>
* Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -251,6 +251,8 @@ int pop_open_connection (POP_DATA *pop_data)
ret = pop_authenticate (pop_data);
if (ret == -1)
goto err_conn;
if (ret == -3)
mutt_clear_error ();
if (ret != 0)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment