-#ifdef USE_IMAP
- else if ((account->type == M_ACCT_TYPE_IMAP) && ImapPass)
- strfcpy (account->pass, ImapPass, sizeof (account->pass));
-#endif
-#ifdef USE_POP
- else if ((account->type == M_ACCT_TYPE_POP) && PopPass)
- strfcpy (account->pass, PopPass, sizeof (account->pass));
-#endif
-#ifdef USE_NNTP
- else if ((account->type == M_ACCT_TYPE_NNTP) && NntpPass)
- strfcpy (account->pass, NntpPass, sizeof (account->pass));
-#endif
- else {
- snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "),
- account->login, account->host);
- account->pass[0] = '\0';
- if (mutt_get_password (prompt, account->pass, sizeof (account->pass)))
- return -1;
- }
-
- account->flags |= M_ACCT_PASS;
-
- return 0;
-}
-
-void mutt_account_unsetpass (ACCOUNT * account)
-{
- account->flags &= !M_ACCT_PASS;