X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..92a950882661a15ea3bd1e73be4e1a341d81e9b9:/account.c?ds=sidebyside diff --git a/account.c b/account.c index b305f78..f738991 100644 --- a/account.c +++ b/account.c @@ -155,6 +155,8 @@ int mutt_account_getuser (ACCOUNT* account) 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 { @@ -215,6 +217,8 @@ int mutt_account_getpass (ACCOUNT* account) 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: "),