String nologin = OzImapServer.allowCleartextLogins() || mStartedTLS || authenticated ? "" : "LOGINDISABLED ";
String nologin =  allowCleartextLogin() || mStartedTLS || authenticated ? "" : "LOGINDISABLED ";
    private void sendCapability() throws IOException {        // [IMAP4rev1]        RFC 3501: Internet Message Access Protocol - Version 4rev1        // [LOGINDISABLED]    RFC 3501: Internet Message Access Protocol - Version 4rev1        // [STARTTLS]         RFC 3501: Internet Message Access Protocol - Version 4rev1        // [AUTH=PLAIN]       RFC 2595: Using TLS with IMAP, POP3 and ACAP        // [CHILDREN]         RFC 3348: IMAP4 Child Mailbox Extension        // [ID]               RFC 2971: IMAP4 ID Extension        // [IDLE]             RFC 2177: IMAP4 IDLE command        // [LITERAL+]         RFC 2088: IMAP4 non-synchronizing literals        // [LOGIN-REFERRALS]  RFC 2221: IMAP4 Login Referrals        // [NAMESPACE]        RFC 2342: IMAP4 Namespace        // [QUOTA]            RFC 2087: IMAP4 QUOTA extension        // [UIDPLUS]          RFC 2359: IMAP4 UIDPLUS extension        // [UNSELECT]         RFC 3691: IMAP UNSELECT command        boolean authenticated = mSession != null;        String nologin = OzImapServer.allowCleartextLogins() || mStartedTLS || authenticated ? "" : "LOGINDISABLED ";        String starttls = mStartedTLS || authenticated ? "" : "STARTTLS ";        String plain = !mStartedTLS || authenticated ? "" : "AUTH=PLAIN ";         sendUntagged("CAPABILITY IMAP4rev1 " + nologin + starttls + "CHILDREN ID IDLE LITERAL+ LOGIN-REFERRALS NAMESPACE QUOTA UIDPLUS UNSELECT");    }