/** * ENABLE Command. * * @param cap the name of the capability to enable * @exception ProtocolException for protocol failures * @see "RFC 5161" * @since JavaMail 1.5.1 */ public void enable(String cap) throws ProtocolException { if (!hasCapability("ENABLE")) throw new BadCommandException("ENABLE not supported"); Argument args = new Argument(); args.writeAtom(cap); simpleCommand("ENABLE", args); if (enabled == null) enabled = new HashSet<>(); enabled.add(cap.toUpperCase(Locale.ENGLISH)); // update the utf8 flag utf8 = isEnabled("UTF8=ACCEPT"); }
/** * ENABLE Command. * * @param cap the name of the capability to enable * @exception ProtocolException for protocol failures * @see "RFC 5161" * @since JavaMail 1.5.1 */ public void enable(String cap) throws ProtocolException { if (!hasCapability("ENABLE")) throw new BadCommandException("ENABLE not supported"); Argument args = new Argument(); args.writeAtom(cap); simpleCommand("ENABLE", args); if (enabled == null) enabled = new HashSet<>(); enabled.add(cap.toUpperCase(Locale.ENGLISH)); // update the utf8 flag utf8 = isEnabled("UTF8=ACCEPT"); }
/** * ENABLE Command. * * @param cap the name of the capability to enable * @exception ProtocolException for protocol failures * @see "RFC 5161" * @since JavaMail 1.5.1 */ public void enable(String cap) throws ProtocolException { if (!hasCapability("ENABLE")) throw new BadCommandException("ENABLE not supported"); Argument args = new Argument(); args.writeAtom(cap); simpleCommand("ENABLE", args); if (enabled == null) enabled = new HashSet<>(); enabled.add(cap.toUpperCase(Locale.ENGLISH)); // update the utf8 flag utf8 = isEnabled("UTF8=ACCEPT"); }
/** * ENABLE Command. * * @param cap the name of the capability to enable * @exception ProtocolException for protocol failures * @see "RFC 5161" * @since JavaMail 1.5.1 */ public void enable(String cap) throws ProtocolException { if (!hasCapability("ENABLE")) throw new BadCommandException("ENABLE not supported"); Argument args = new Argument(); args.writeAtom(cap); simpleCommand("ENABLE", args); if (enabled == null) enabled = new HashSet<>(); enabled.add(cap.toUpperCase(Locale.ENGLISH)); // update the utf8 flag utf8 = isEnabled("UTF8=ACCEPT"); }
/** * ENABLE Command. * * @param cap the name of the capability to enable * @exception ProtocolException for protocol failures * @see "RFC 5161" * @since JavaMail 1.5.1 */ public void enable(String cap) throws ProtocolException { if (!hasCapability("ENABLE")) throw new BadCommandException("ENABLE not supported"); Argument args = new Argument(); args.writeAtom(cap); simpleCommand("ENABLE", args); if (enabled == null) enabled = new HashSet<>(); enabled.add(cap.toUpperCase(Locale.ENGLISH)); // update the utf8 flag utf8 = isEnabled("UTF8=ACCEPT"); }