/** * CHECK Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.1" */ public void check() throws ProtocolException { simpleCommand("CHECK", null); }
/** * EXPUNGE Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.3" */ public void expunge() throws ProtocolException { simpleCommand("EXPUNGE", null); }
/** * EXPUNGE Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.3" */ public void expunge() throws ProtocolException { simpleCommand("EXPUNGE", null); }
/** * CLOSE Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.2" */ public void close() throws ProtocolException { simpleCommand("CLOSE", null); }
/** * CHECK Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.1" */ public void check() throws ProtocolException { simpleCommand("CHECK", null); }
/** * CLOSE Command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.4.2" */ public void close() throws ProtocolException { simpleCommand("CLOSE", null); }
/** * The NOOP command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.1.2" */ public void noop() throws ProtocolException { logger.fine("IMAPProtocol noop"); simpleCommand("NOOP", null); }
/** * The NOOP command. * * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.1.2" */ public void noop() throws ProtocolException { logger.fine("IMAPProtocol noop"); simpleCommand("NOOP", null); }
/** * UNSELECT Command. * * @exception ProtocolException for protocol failures * @see "RFC 3691" * @since JavaMail 1.4.4 */ public void unselect() throws ProtocolException { if (!hasCapability("UNSELECT")) throw new BadCommandException("UNSELECT not supported"); simpleCommand("UNSELECT", null); }
/** * UNSUBSCRIBE Command. * * @param mbox the mailbox * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.3.7" */ public void unsubscribe(String mbox) throws ProtocolException { Argument args = new Argument(); writeMailboxName(args, mbox); simpleCommand("UNSUBSCRIBE", args); }
/** * DELETE Command. * * @param mbox the mailbox to delete * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.3.4" */ public void delete(String mbox) throws ProtocolException { Argument args = new Argument(); writeMailboxName(args, mbox); simpleCommand("DELETE", args); }
/** * UNSELECT Command. * * @exception ProtocolException for protocol failures * @see "RFC 3691" * @since JavaMail 1.4.4 */ public void unselect() throws ProtocolException { if (!hasCapability("UNSELECT")) throw new BadCommandException("UNSELECT not supported"); simpleCommand("UNSELECT", null); }
/** * CREATE Command. * * @param mbox the mailbox to create * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.3.3" */ public void create(String mbox) throws ProtocolException { Argument args = new Argument(); writeMailboxName(args, mbox); simpleCommand("CREATE", args); }
/** * UNAUTHENTICATE Command. * * @exception ProtocolException for protocol failures * @see "Netscape/iPlanet/SunONE Messaging Server extension" * @since JavaMail 1.5.1 */ public void unauthenticate() throws ProtocolException { if (!hasCapability("X-UNAUTHENTICATE")) throw new BadCommandException("UNAUTHENTICATE not supported"); simpleCommand("UNAUTHENTICATE", null); authenticated = false; }
/** * PROXYAUTH Command. * * @param u the PROXYAUTH user name * @exception ProtocolException for protocol failures * @see "Netscape/iPlanet/SunONE Messaging Server extension" */ public void proxyauth(String u) throws ProtocolException { Argument args = new Argument(); args.writeString(u); simpleCommand("PROXYAUTH", args); proxyAuthUser = u; }
/** * UNAUTHENTICATE Command. * * @exception ProtocolException for protocol failures * @see "Netscape/iPlanet/SunONE Messaging Server extension" * @since JavaMail 1.5.1 */ public void unauthenticate() throws ProtocolException { if (!hasCapability("X-UNAUTHENTICATE")) throw new BadCommandException("UNAUTHENTICATE not supported"); simpleCommand("UNAUTHENTICATE", null); authenticated = false; }
/** * PROXYAUTH Command. * * @param u the PROXYAUTH user name * @exception ProtocolException for protocol failures * @see "Netscape/iPlanet/SunONE Messaging Server extension" */ public void proxyauth(String u) throws ProtocolException { Argument args = new Argument(); args.writeString(u); simpleCommand("PROXYAUTH", args); proxyAuthUser = u; }
/** * SUBSCRIBE Command. * * @param mbox the mailbox * @exception ProtocolException for protocol failures * @see "RFC2060, section 6.3.6" */ public void subscribe(String mbox) throws ProtocolException { Argument args = new Argument(); writeMailboxName(args, mbox); simpleCommand("SUBSCRIBE", args); }
/** * UID EXPUNGE Command. * * @param set UIDs to expunge * @exception ProtocolException for protocol failures * @see "RFC4315, section 2" */ public void uidexpunge(UIDSet[] set) throws ProtocolException { if (!hasCapability("UIDPLUS")) throw new BadCommandException("UID EXPUNGE not supported"); simpleCommand("UID EXPUNGE " + UIDSet.toString(set), null); }
/** * UID EXPUNGE Command. * * @param set UIDs to expunge * @exception ProtocolException for protocol failures * @see "RFC4315, section 2" */ public void uidexpunge(UIDSet[] set) throws ProtocolException { if (!hasCapability("UIDPLUS")) throw new BadCommandException("UID EXPUNGE not supported"); simpleCommand("UID EXPUNGE " + UIDSet.toString(set), null); }