public class GmailProtocol extends IMAPProtocol
| Modifier and Type | Field | Description |
|---|---|---|
static FetchItem |
LABELS_ITEM |
|
static FetchItem |
MSGID_ITEM |
|
static FetchItem |
THRID_ITEM |
enabled, searchCharsets, searchSequence| Constructor | Description |
|---|---|
GmailProtocol(java.lang.String name,
java.lang.String host,
int port,
java.util.Properties props,
boolean isSSL,
MailLogger logger) |
Connect to Gmail.
|
| Modifier and Type | Method | Description |
|---|---|---|
FetchItem[] |
getFetchItems() |
Return the additional fetch items supported by the Gmail protocol.
|
protected SearchSequence |
getSearchSequence() |
Return a GmailSearchSequence.
|
void |
storeLabels(int start,
int end,
java.lang.String[] labels,
boolean set) |
Set the specified labels on this message.
|
void |
storeLabels(int msg,
java.lang.String[] labels,
boolean set) |
Set the specified labels on this message.
|
void |
storeLabels(MessageSet[] msgsets,
java.lang.String[] labels,
boolean set) |
Set the specified labels on this message.
|
append, appenduid, appenduid, authlogin, authntlm, authoauth2, authplain, capability, check, close, compress, copy, copy, copyuid, copyuid, create, createFlagList, delete, deleteACL, disconnect, doList, enable, examine, examine, expunge, fetch, fetch, fetch, fetchBody, fetchBody, fetchBody, fetchBody, fetchBody, fetchBodyStructure, fetchFlags, fetchMODSEQ, fetchRFC822, fetchSectionBody, fetchSequenceNumber, fetchSequenceNumbers, fetchSequenceNumbers, fetchUID, getACL, getCapabilities, getCopyUID, getProxyAuthUser, getQuota, getQuotaRoot, getResponseBuffer, handleCapabilityResponse, handleLoginResult, hasCapability, id, id, idleAbort, idleStart, isAuthenticated, isEnabled, isREV1, list, listRights, login, logout, lsub, move, move, moveuid, moveuid, myRights, namespace, noop, parseCapabilities, peekBody, peekBody, peekBody, processGreeting, processIdleResponse, proxyauth, readIdleResponse, readResponse, rename, sasllogin, search, search, select, select, setACL, setCapabilities, setQuota, sort, startTLS, status, storeFlags, storeFlags, storeFlags, subscribe, supportsNonSyncLiterals, supportsUtf8, uidexpunge, uidfetchChangedSince, unauthenticate, unselect, unsubscribe, writeMailboxNameclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddResponseHandler, command, finalize, getChannel, getInetAddress, getInputStream, getLocalHost, getOutputStream, getTimestamp, handleResult, hasResponse, isSSL, isTracing, notifyResponseHandlers, removeResponseHandler, resumeTracing, simpleCommand, startCompression, startTLS, suspendTracing, writeCommandpublic static final FetchItem MSGID_ITEM
public static final FetchItem THRID_ITEM
public static final FetchItem LABELS_ITEM
public GmailProtocol(java.lang.String name,
java.lang.String host,
int port,
java.util.Properties props,
boolean isSSL,
MailLogger logger)
throws java.io.IOException,
ProtocolException
name - the protocol namehost - host to connect toport - portnumber to connect toprops - Properties object used by this protocolisSSL - use SSL?logger - for log messagesjava.io.IOException - for I/O errorsProtocolException - for protocol failurespublic FetchItem[] getFetchItems()
getFetchItems in class IMAPProtocolpublic void storeLabels(MessageSet[] msgsets, java.lang.String[] labels, boolean set) throws ProtocolException
msgsets - the message setslabels - the labelsset - true to set, false to clearProtocolException - for protocol failurespublic void storeLabels(int start,
int end,
java.lang.String[] labels,
boolean set)
throws ProtocolException
start - the first message numberend - the last message numberlabels - the labelsset - true to set, false to clearProtocolException - for protocol failurespublic void storeLabels(int msg,
java.lang.String[] labels,
boolean set)
throws ProtocolException
msg - the message numberlabels - the labelsset - true to set, false to clearProtocolException - for protocol failuresprotected SearchSequence getSearchSequence()
getSearchSequence in class IMAPProtocolCopyright © 2018 Oracle. All rights reserved.