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) {
// cut of the CRLF
String initialClientResponse = new String(data, 0, data.length - 2, Charset.forName("US-ASCII"));