From 7feb75607413687c38c51197a73611cb30d39127 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 9 Sep 2021 21:01:09 -0600 Subject: * Alpine will delete passwords that do not work from internal memory and the local password cache (password file or system local cache.) --- imap/src/c-client/smtp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'imap/src/c-client/smtp.c') diff --git a/imap/src/c-client/smtp.c b/imap/src/c-client/smtp.c index bee34565..7c1f9936 100644 --- a/imap/src/c-client/smtp.c +++ b/imap/src/c-client/smtp.c @@ -301,6 +301,7 @@ long smtp_auth (SENDSTREAM *stream,NETMBX *mb,char *tmp) sprintf (tmp,"Retrying using %s authentication after %.80s", at->name,lsterr); mm_log (tmp,NIL); + delete_password(mb, usr); fs_give ((void **) &lsterr); } trial = 0; /* initial trial count */ @@ -310,6 +311,7 @@ long smtp_auth (SENDSTREAM *stream,NETMBX *mb,char *tmp) sprintf (tmp,"Retrying %s authentication after %.80s",at->name,lsterr); mm_log (tmp,WARN); fs_give ((void **) &lsterr); + delete_password(mb, usr); } if(at->flags & AU_SINGLE){ sprintf(tmp, "AUTH %s", at->name); @@ -343,6 +345,7 @@ long smtp_auth (SENDSTREAM *stream,NETMBX *mb,char *tmp) sprintf (tmp,"Can not authenticate to SMTP server: %.80s",lsterr); mm_log (tmp,ERROR); } + delete_password(mb, usr); fs_give ((void **) &lsterr); } if(mb && *mb->auth){ -- cgit v1.2.3-54-g00ecf