#include "account.h"
#include "url.h"
-/* mutt_account_match: compare account info (host/port/user/login) */
+/* mutt_account_match: compare account info (host/port/user) */
int mutt_account_match (const ACCOUNT* a1, const ACCOUNT* a2)
{
const char* user = NONULL (Username);
- const char* login = NONULL (Username);
if (a1->type != a2->type)
return 0;
{
if (ImapUser)
user = ImapUser;
- if (ImapLogin)
- login = ImapLogin;
}
#endif
else if ((account->type == M_ACCT_TYPE_POP) && PopUser)
strfcpy (account->user, PopUser, sizeof (account->user));
#endif
+ else if (option (OPTNOCURSES))
+ return -1;
/* prompt (defaults to unix username), copy into account->user */
else
{
else if ((account->type == M_ACCT_TYPE_SMTP) && SmtpPass)
strfcpy (account->pass, SmtpPass, sizeof (account->pass));
#endif
+ else if (option (OPTNOCURSES))
+ return -1;
else
{
snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "),