// See if AUTH=PLAIN is allowed. See IMAP-304
if (session.isPlainAuthDisallowed() && session.isTLSActive() == false) {
no(command, tag, responder, HumanReadableText.DISABLED_LOGIN);
} else {
if (request instanceof IRAuthenticateRequest) {
IRAuthenticateRequest irRequest = (IRAuthenticateRequest) request;
doPlainAuth(irRequest.getInitialClientResponse(), session, tag, command, responder);
} else {
responder.respond(new AuthenticateResponse());
session.pushLineHandler(new ImapLineHandler() {
public void onLine(ImapSession session, byte[] data) {