Example usage for Java org.apache.commons.net.imap IMAPClient fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addProtocolCommandListener(ProtocolCommandListener listener) Adds a ProtocolCommandListener. |
boolean | capability() Send a CAPABILITY command to the server. |
boolean | close() Send a CLOSE command to the server. |
void | connect(InetAddress host) Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port. |
void | connect(InetAddress host, int port) Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port. |
void | disconnect() Disconnects the client from the server, and sets the state to DISCONNECTED_STATE . |
boolean | doCommand(IMAPCommand command) Sends a command to the server and return whether successful. |
boolean | examine(String mailboxName) Send an EXAMINE command to the server. |
boolean | expunge() Send an EXPUNGE command to the server. |
boolean | fetch(String sequenceSet, String itemNames) Send a FETCH command to the server. |
int | getDefaultPort() Returns the current value of the default port (stored in #_defaultPort_ _defaultPort_ ). |
InetAddress | getLocalAddress() Returns the local address to which the client's socket is bound. |
int | getLocalPort() Returns the port number of the open socket on the local host used for the connection. |
String | getReplyString() Returns the reply to the last command sent to the server. |
String[] | getReplyStrings() Returns an array of lines received as a reply to the last command sent to the server. |
boolean | isConnected() Returns true if the client is currently connected to a server. |
boolean | list(String refName, String mailboxName) Send a LIST command to the server. |
boolean | login(String username, String password) Login to the IMAP server with the given username and password. |
boolean | logout() Send a LOGOUT command to the server. |
boolean | noop() Send a NOOP command to the server. |
boolean | select(String mailboxName) Send a SELECT command to the server. |
void | setConnectTimeout(int connectTimeout) Sets the connection timeout in milliseconds, which will be passed to the Socket object's connect() method. |
void | setDefaultPort(int port) Sets the default port the SocketClient should connect to when a port is not specified. |
void | setDefaultTimeout(int timeout) Set the default timeout in milliseconds to use when opening a socket. |
void | setSoTimeout(int timeout) Set the timeout in milliseconds of a currently open connection. |
boolean | status(String mailboxName, String[] itemNames) Send a STATUS command to the server. |
boolean | store(String sequenceSet, String itemNames, String itemValues) Send a STORE command to the server. |