Re: [Mutt] #2117: smtp patch does not tell you when your password
#2117: smtp patch does not tell you when your password is incorrect
Comment (by gshapiro):
The attached patch fixes both the problem from ticket #2872 as well as the
problem in this ticket. It does so by separating the fact the AUTH isn't
available from AUTH failures. In the case of specific SmtpAuthenticators,
if an attempt at one fails, SMTP_AUTH_NEXT is returned to indicate the
next method should be attempted. SMTP_AUTH_UNAVAIL will only be returned
if SASL can't negotiate a common AUTH method. At the end of the
smtp_auth(), if we have exhausted the list of SmtpAuthenticators or, if
none was specified and the single call to smtp_auth_sasl(conn, AuthMechs)
failed, M_ACCT_PASS is cleared from the SMTP connection so the next
attempt will again query for a password.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2117#comment:3>