notifyResponseHandlers(r).
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private List | |
| private ByteArray | |
| private Map | |
| private boolean | |
| private static final byte[] | |
| private static final byte[] | |
| protected Set | |
| private static final FetchItem[] | |
| private volatile String | |
| private String | |
| private boolean | |
| private String | |
| private boolean | |
| private boolean | |
| private SaslAuthenticator | |
| protected String[] | |
| protected SearchSequence | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | IMAPProtocol(String
the protocol name name, String host to connect to host, int port number to connect to port, Properties Properties object used by this protocol props, boolean true if SSL should be used isSSL, MailLogger the MailLogger to use for debug output logger)Constructor. |
| public | IMAPProtocol(InputStream
the InputStream from which to read in, PrintStream the PrintStream to which to write out, Properties Properties object used by this protocol props, boolean true to enable debugging output debug)Constructor for debugging. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public AppendUID | |
| public AppendUID | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | authoauth2(String
the username u, String the password p)The AUTHENTICATE command with AUTH=XOAUTH2 authentication scheme. |
| public synchronized void | |
| public void | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public CopyUID | Returns: COPYUID response datathe messages to copy msgsets, String the mailbox to copy them to mbox)COPY command, return uid from COPYUID response code. |
| public CopyUID | |
| private CopyUID | |
| public void | |
| protected String | Returns: the IMAP flag_listthe flags flags)Creates an IMAP flag_list from the given Flags object. |
| public void | |
| public void | |
| public void | |
| protected ListInfo[] | |
| public void | |
| public MailboxInfo | |
| public MailboxInfo | Returns: MailboxInfo if successfulthe mailbox name mbox, ResyncData the ResyncData rd)EXAMINE Command with QRESYNC data. |
| public void | |
| public Response[] | |
| public Response[] | |
| public Response[] | |
| private Response[] | |
| public BODY | |
| protected BODY | |
| public BODY | |
| public BODY | |
| protected BODY | |
| public BODYSTRUCTURE | Returns: the BODYSTRUCTURE itemthe message number msgno)Fetch the BODYSTRUCTURE of the specified message. |
| public Flags | |
| public MODSEQ | Returns: the MODSEQthe message number msgno)Fetch the IMAP MODSEQ for the given message. |
| public RFC822DATA | Returns: the RFC822DATA itemthe message number msgno, String the item to fetch what)Fetch the specified RFC822 Data item. |
| protected BODY | Returns: the BODY itemthe message number msgno, String the body section section, String the body string body)Fetch the given body section of the given message, using the body string "body". |
| public void | |
| public long[] | Returns: array of sequence numbersfirst UID start, long last UID end)Get the sequence numbers for UIDs ranging from start till end. |
| public void | |
| public UID | |
| public ACL[] | |
| private AppendUID | getAppendUID(Response r)
If the response contains an APPENDUID response code, extract it and return an AppendUID object with the information. |
| public Map | Returns: the Map of capabilitiesReturn the map of capabilities returned by the server. |
| protected CopyUID | Returns: the COPYUID response code data, or null if not foundthe responses to examine rr)If the response contains a COPYUID response code, extract it and return a CopyUID object with the information. |
| public FetchItem[] | Returns: an array of FetchItem objectsReturn an array of FetchItem objects describing the FETCH items supported by this protocol. |
| pack-priv OutputStream | |
| public String | Returns: the PROXYAUTH user nameGet the user name used with the PROXYAUTH command. |
| public Quota[] | |
| public Quota[] | |
| protected ByteArray | Returns: the buffer to useOverrides com. |
| protected SearchSequence | |
| public void | handleCapabilityResponse(Response[]
the responses r)Handle any untagged CAPABILITY response in the Response array. |
| protected void | handleLoginResult(Response
the response r)Handle the result response for a LOGIN or AUTHENTICATE command. |
| public boolean | Returns: true if the server has the capabilitythe capability name c)Check whether the given capability is supported by this server. |
| public void | id(String
the GUID guid)
Deprecated
As of JavaMail 1.5.1, replaced by
ID Command, for Yahoo!
id(Map<String,String>)
|
| public Map | |
| public void | |
| public synchronized void | |
| public boolean | Returns: true if the connection has been authenticatedReturns |
| public boolean | |
| public boolean | |
| private int[] | |
| public ListInfo[] | |
| public Rights[] | Returns: the rights arraythe mailbox mbox, String the user rights to return user)LISTRIGHTS Command. |
| public void | |
| public void | |
| public ListInfo[] | |
| public void | |
| public void | |
| public CopyUID | Returns: COPYUID response datathe messages to move msgsets, String the mailbox to move them to mbox)MOVE Command, return uid from COPYUID response code. |
| public CopyUID | |
| private CopyUID | |
| public Rights | |
| public Namespaces | |
| public void | |
| protected void | parseCapabilities(Response
the CAPABILITY response r)Parse the capabilities from a CAPABILITY response or from a CAPABILITY response code attached to (e.g.) an OK response. |
| private Quota | |
| public BODY | |
| public BODY | |
| public BODY | |
| protected void | processGreeting(Response
the greeting response r)Overrides com. |
| public boolean | Returns: true if IDLE is donethe response r)Process a response returned by readIdleResponse(). |
| public void | |
| public synchronized Response | Returns: the responseWhile an IDLE command is in progress, read a response sent from the server. |
| public Response | Returns: the responseOverrides com. |
| public void | |
| private static Argument | |
| public void | |
| public int[] | Returns: array of matching sequence numbers.array of MessageSets msgsets, SearchTerm SearchTerm term)Issue the given search criterion on the specified message sets. |
| public int[] | Returns: array of matching sequence numbers.SearchTerm term)Issue the given search criterion on all messages in this folder. |
| private int[] | |
| public MailboxInfo | |
| public MailboxInfo | Returns: MailboxInfo if successfulthe mailbox name mbox, ResyncData the ResyncData rd)SELECT Command with QRESYNC data. |
| public void | |
| protected void | setCapabilities(Response
the response r)If the response contains a CAPABILITY response code, extract it and save the capabilities. |
| public void | |
| public int[] | Returns: array of matching sequence numbers.sort criteria term, SearchTerm SearchTerm sterm)Sort messages in the folder according to the specified sort criteria. |
| public void | |
| public Status | |
| public void | |
| public void | |
| public void | storeFlags(int
the message number msg, Flags the flags flags, boolean true to set, false to clear set)Set the specified flags on this message. |
| private void | |
| public void | |
| protected boolean | Returns: true if non-synchronizing literals are supportedOverrides com. |
| public boolean | |
| public void | |
| public int[] | Returns: array of sequence numbersfirst UID start, long last UID end, long the MODSEQ modseq)Get the sequence numbers for messages changed since the given modseq and with UIDs ranging from start till end. |
| public void | |
| public void | |
| public void | |
| protected void | writeMailboxName(Argument
the arguments args, String the name to encode name)Encode a mailbox name appropriately depending on whether or not the server supports UTF-8, and add the encoded name to the Argument. |