- mutt_message _("Logging in...");
-
- imap_quote_string(q_user, sizeof(q_user), idata->conn->account.login);
- imap_quote_string(q_pass, sizeof(q_pass), idata->conn->account.pass);
-
- snprintf(buf, sizeof(buf), "LOGIN %s %s", q_user, q_pass);
- rc = imap_exec(idata, buf, IMAP_CMD_FAIL_OK | IMAP_CMD_PASS);
-
- if (!rc)
- return IMAP_AUTH_SUCCESS;
-
- mutt_error _("Login failed.");
-
- mutt_sleep (2);
- return IMAP_AUTH_FAILURE;
-}
-static imap_auth_t imap_authenticators[] = {
- {imap_auth_sasl, NULL},
- {imap_auth_login, "login"},
- {NULL, NULL}
-};
-
-/* imap_authenticate: Attempt to authenticate using either user-specified
- * authentication method if specified, or any. */