Package | Description |
---|---|
com.sun.mail.iap | |
com.sun.mail.imap |
An IMAP protocol provider for the JavaMail API
that provides access to an IMAP message store.
|
com.sun.mail.imap.protocol |
Modifier and Type | Class and Description |
---|---|
class |
BadCommandException |
class |
CommandFailedException |
class |
ConnectionException |
class |
LiteralException |
class |
ParsingException |
Modifier and Type | Method and Description |
---|---|
void |
Protocol.handleResult(Response response)
Convenience routine to handle OK, NO, BAD and BYE responses.
|
protected void |
Protocol.processGreeting(Response r) |
Response |
Protocol.readResponse() |
void |
Protocol.simpleCommand(String cmd,
Argument args)
Convenience routine to handle simple IAP commands
that do not have responses specific to that command.
|
void |
Protocol.startTLS(String cmd)
Start TLS on the current connection.
|
void |
Argument.write(Protocol protocol) |
String |
Protocol.writeCommand(String command,
Argument args) |
Constructor and Description |
---|
Protocol(String host,
int port,
boolean debug,
PrintStream out,
Properties props,
String prefix,
boolean isSSL)
Constructor.
|
Response(Protocol p)
Read a new Response from the given Protocol
|
Modifier and Type | Method and Description |
---|---|
Object |
IMAPFolder.ProtocolCommand.doCommand(IMAPProtocol protocol)
Execute the user-defined command using the supplied IMAPProtocol
object.
|
protected Object |
IMAPFolder.doProtocolCommand(IMAPFolder.ProtocolCommand cmd) |
protected IMAPProtocol |
IMAPNestedMessage.getProtocol() |
protected IMAPProtocol |
IMAPMessage.getProtocol()
Get this message's folder's protocol connection.
|
protected IMAPProtocol |
IMAPFolder.getProtocol()
Return the IMAPProtocol object for this folder.
|
protected IMAPProtocol |
IMAPFolder.getStoreProtocol()
Get this folder's Store's protocol connection.
|
protected void |
IMAPFolder.keepConnectionAlive(boolean keepStoreAlive)
Issue a noop command for the connection if the connection has not been
used in more than a second.
|
protected void |
IMAPStore.preLogin(IMAPProtocol p)
This method is called after the connection is made and
TLS is started (if needed), but before any authentication
is attempted.
|
Modifier and Type | Method and Description |
---|---|
void |
IMAPProtocol.append(String mbox,
Flags f,
Date d,
Literal data)
APPEND Command.
|
AppendUID |
IMAPProtocol.appenduid(String mbox,
Flags f,
Date d,
Literal data)
APPEND Command, return uid from APPENDUID response code.
|
AppendUID |
IMAPProtocol.appenduid(String mbox,
Flags f,
Date d,
Literal data,
boolean uid) |
boolean |
SaslAuthenticator.authenticate(String[] mechs,
String realm,
String authzid,
String u,
String p) |
boolean |
IMAPSaslAuthenticator.authenticate(String[] mechs,
String realm,
String authzid,
String u,
String p) |
void |
IMAPProtocol.authlogin(String u,
String p)
The AUTHENTICATE command with AUTH=LOGIN authenticate scheme
|
void |
IMAPProtocol.authntlm(String authzid,
String u,
String p)
The AUTHENTICATE command with AUTH=NTLM authentication scheme.
|
void |
IMAPProtocol.authplain(String authzid,
String u,
String p)
The AUTHENTICATE command with AUTH=PLAIN authentication scheme.
|
void |
IMAPProtocol.capability()
CAPABILITY command.
|
void |
IMAPProtocol.check()
CHECK Command.
|
void |
IMAPProtocol.close()
CLOSE Command.
|
void |
IMAPProtocol.copy(int start,
int end,
String mbox) |
void |
IMAPProtocol.copy(MessageSet[] msgsets,
String mbox)
COPY command.
|
void |
IMAPProtocol.create(String mbox)
CREATE Command.
|
void |
IMAPProtocol.delete(String mbox)
DELETE Command.
|
void |
IMAPProtocol.deleteACL(String mbox,
String user)
DELETEACL Command.
|
MailboxInfo |
IMAPProtocol.examine(String mbox)
EXAMINE Command.
|
void |
IMAPProtocol.expunge()
EXPUNGE Command.
|
Response[] |
IMAPProtocol.fetch(int start,
int end,
String what) |
Response[] |
IMAPProtocol.fetch(int msg,
String what) |
Response[] |
IMAPProtocol.fetch(MessageSet[] msgsets,
String what) |
BODY |
IMAPProtocol.fetchBody(int msgno,
String section)
Fetch given BODY section.
|
protected BODY |
IMAPProtocol.fetchBody(int msgno,
String section,
boolean peek) |
BODY |
IMAPProtocol.fetchBody(int msgno,
String section,
int start,
int size)
Partial FETCH of given BODY section.
|
protected BODY |
IMAPProtocol.fetchBody(int msgno,
String section,
int start,
int size,
boolean peek,
ByteArray ba) |
BODY |
IMAPProtocol.fetchBody(int msgno,
String section,
int start,
int size,
ByteArray ba)
Partial FETCH of given BODY section.
|
BODYSTRUCTURE |
IMAPProtocol.fetchBodyStructure(int msgno)
Fetch the BODYSTRUCTURE of the specified message.
|
Flags |
IMAPProtocol.fetchFlags(int msgno)
Fetch the FLAGS for the given message.
|
RFC822DATA |
IMAPProtocol.fetchRFC822(int msgno,
String what)
Fetch the specified RFC822 Data item.
|
UID |
IMAPProtocol.fetchSequenceNumber(long uid)
Get the sequence number for the given UID.
|
UID[] |
IMAPProtocol.fetchSequenceNumbers(long[] uids)
Get the sequence numbers for UIDs ranging from start till end.
|
UID[] |
IMAPProtocol.fetchSequenceNumbers(long start,
long end)
Get the sequence numbers for UIDs ranging from start till end.
|
UID |
IMAPProtocol.fetchUID(int msgno)
Fetch the IMAP UID for the given message.
|
ACL[] |
IMAPProtocol.getACL(String mbox)
GETACL Command.
|
Quota[] |
IMAPProtocol.getQuota(String root)
GETQUOTA Command.
|
Quota[] |
IMAPProtocol.getQuotaRoot(String mbox)
GETQUOTAROOT Command.
|
void |
IMAPProtocol.id(String guid)
ID Command, for Yahoo! Mail IMAP server.
|
void |
IMAPProtocol.idleAbort()
Abort an IDLE command.
|
void |
IMAPProtocol.idleStart()
IDLE Command.
|
ListInfo[] |
IMAPProtocol.list(String ref,
String pattern)
LIST Command.
|
Rights[] |
IMAPProtocol.listRights(String mbox,
String user)
LISTRIGHTS Command.
|
void |
IMAPProtocol.login(String u,
String p)
LOGIN Command.
|
void |
IMAPProtocol.logout()
LOGOUT Command.
|
ListInfo[] |
IMAPProtocol.lsub(String ref,
String pattern)
LSUB Command.
|
Rights |
IMAPProtocol.myRights(String mbox)
MYRIGHTS Command.
|
Namespaces |
IMAPProtocol.namespace()
NAMESPACE Command.
|
void |
IMAPProtocol.noop()
The NOOP command.
|
BODY |
IMAPProtocol.peekBody(int msgno,
String section)
Fetch given BODY section, without marking the message
as SEEN.
|
BODY |
IMAPProtocol.peekBody(int msgno,
String section,
int start,
int size)
Partial FETCH of given BODY section, without setting SEEN flag.
|
BODY |
IMAPProtocol.peekBody(int msgno,
String section,
int start,
int size,
ByteArray ba)
Partial FETCH of given BODY section, without setting SEEN flag.
|
protected void |
IMAPProtocol.processGreeting(Response r)
Check the greeting when first connecting; look for PREAUTH response.
|
boolean |
IMAPProtocol.processIdleResponse(Response r)
Process a response returned by readIdleResponse().
|
void |
IMAPProtocol.proxyauth(String u)
PROXYAUTH Command.
|
Response |
IMAPProtocol.readResponse()
Read a response from the server.
|
static IMAPResponse |
IMAPResponse.readResponse(Protocol p) |
void |
IMAPProtocol.rename(String o,
String n)
RENAME Command.
|
void |
IMAPProtocol.sasllogin(String[] allowed,
String realm,
String authzid,
String u,
String p)
SASL-based login.
|
int[] |
IMAPProtocol.search(MessageSet[] msgsets,
SearchTerm term)
Issue the given search criterion on the specified message sets.
|
int[] |
IMAPProtocol.search(SearchTerm term)
Issue the given search criterion on all messages in this folder.
|
MailboxInfo |
IMAPProtocol.select(String mbox)
SELECT Command.
|
void |
IMAPProtocol.setACL(String mbox,
char modifier,
ACL acl)
SETACL Command.
|
void |
IMAPProtocol.setQuota(Quota quota)
SETQUOTA Command.
|
int[] |
IMAPProtocol.sort(SortTerm[] term,
SearchTerm sterm)
Sort messages in the folder according to the specified sort criteria.
|
void |
IMAPProtocol.startTLS()
STARTTLS Command.
|
Status |
IMAPProtocol.status(String mbox,
String[] items)
STATUS Command.
|
void |
IMAPProtocol.storeFlags(int msg,
Flags flags,
boolean set)
Set the specified flags on this message.
|
void |
IMAPProtocol.storeFlags(int start,
int end,
Flags flags,
boolean set) |
void |
IMAPProtocol.storeFlags(MessageSet[] msgsets,
Flags flags,
boolean set) |
void |
IMAPProtocol.subscribe(String mbox)
SUBSCRIBE Command.
|
void |
IMAPProtocol.uidexpunge(UIDSet[] set)
UID EXPUNGE Command.
|
void |
IMAPProtocol.unselect()
UNSELECT Command.
|
void |
IMAPProtocol.unsubscribe(String mbox)
UNSUBSCRIBE Command.
|
Constructor and Description |
---|
FetchResponse(IMAPResponse r) |
FetchResponse(Protocol p) |
IMAPProtocol(String name,
String host,
int port,
boolean debug,
PrintStream out,
Properties props,
boolean isSSL)
Constructor.
|
IMAPResponse(Protocol c) |
Namespaces.Namespace(Response r)
Parse a namespace element out of the response.
|
Namespaces(Response r)
Parse out all the namespaces.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.