progress_t progress;
struct stat st;
int r, term = 0;
- size_t buflen;
+ size_t buflen = 0;
fp = fopen (msgfile, "r");
if (!fp)
}
#ifdef USE_SASL
- if (!(conn->account.flags & M_ACCT_PASS) && option (OPTNOCURSES))
- {
- mutt_error (_("Interactive SMTP authentication not supported"));
- mutt_sleep (1);
- return -1;
- }
return smtp_auth (conn);
#else
mutt_error (_("SMTP authentication requires SASL"));
}
}
strfcpy (buf + len, "\r\n", sizeof (buf) - len);
- } while (rc == smtp_ready);
+ } while (rc == smtp_ready && saslrc != SASL_FAIL);
if (smtp_success (rc))
{