/* remote host account manipulation (POP/IMAP) */
#include <lib-lib/lib-lib.h>
-#include <lib-ui/enter.h>
#include <lib-ui/lib-ui.h>
#include "mutt.h"
if (a1->type == M_ACCT_TYPE_POP && !m_strisempty(PopUser))
user = PopUser;
-#ifdef USE_NNTP
- if (a1->type == M_ACCT_TYPE_NNTP && !m_strisempty(NntpUser))
- user = NntpUser;
-#endif
-
if (a1->has_user && a2->has_user)
return !m_strcmp(a1->user, a2->user);
if (a1->has_user)
url->scheme = account->has_ssl ? U_POPS : U_POP;
}
-#ifdef USE_NNTP
- if (account->type == M_ACCT_TYPE_NNTP) {
- url->scheme = account->has_ssl ? U_NNTPS : U_NNTP;
- }
-#endif
-
url->host = account->host;
if (account->has_port)
url->port = account->port;
m_strcpy(account->user, sizeof(account->user), ImapUser);
else if ((account->type == M_ACCT_TYPE_POP) && !m_strisempty(PopUser))
m_strcpy(account->user, sizeof(account->user), PopUser);
-#ifdef USE_NNTP
- else if ((account->type == M_ACCT_TYPE_NNTP) && !m_strisempty(NntpUser))
- m_strcpy(account->user, sizeof(account->user), NntpUser);
-#endif
/* prompt (defaults to unix username), copy into account->user */
else {
snprintf(prompt, sizeof(prompt), _("Username at %s: "), account->host);
m_strcpy(account->pass, sizeof(account->pass), ImapPass);
else if ((account->type == M_ACCT_TYPE_POP) && !m_strisempty(PopPass))
m_strcpy(account->pass, sizeof(account->pass), PopPass);
-#ifdef USE_NNTP
- else if ((account->type == M_ACCT_TYPE_NNTP) && !m_strisempty(NntpPass))
- m_strcpy(account->pass, sizeof(account->pass), NntpPass);
-#endif
else {
snprintf(prompt, sizeof(prompt), _("Password for %s@%s: "),
account->has_login ? account->login : account->user,