public class ImapConnection extends AbstractConnection
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
ImapConnection.AbstractRangeIterator  | 
protected static class  | 
ImapConnection.ImapTokenizer  | 
protected static class  | 
ImapConnection.MessageWrapper  | 
protected static class  | 
ImapConnection.RangeIterator  | 
protected static class  | 
ImapConnection.SearchConditions
client side search conditions 
 | 
protected static class  | 
ImapConnection.UIDRangeIterator  | 
AbstractConnection.LineReaderInputStream, AbstractConnection.StateThread.UncaughtExceptionHandler| Modifier and Type | Field and Description | 
|---|---|
protected String | 
baseMailboxPath  | 
protected String | 
lastCommand  | 
protected int | 
lastCommandCount  | 
client, in, os, password, session, state, userNameMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description | 
|---|
ImapConnection(Socket clientSocket)
Initialize the streams and start the thread. 
 | 
close, logConnection, readClient, sendClient, sendClient, sendClient, sendClientactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected String baseMailboxPath
protected String lastCommand
protected int lastCommandCount
public ImapConnection(Socket clientSocket)
clientSocket - IMAP client socketprotected void checkInfiniteLoop(String line) throws IOException
line - IMAP command lineIOException - on infinite loopprotected void splitUserName()
protected void handleStore(String commandId, ImapConnection.AbstractRangeIterator rangeIterator, String action, String flags) throws IOException
IOExceptionprotected ExchangeSession.Condition buildConditions(ImapConnection.SearchConditions conditions, ImapConnection.ImapTokenizer tokens) throws IOException
IOExceptionprotected List<Long> handleSearch(ImapConnection.ImapTokenizer tokens) throws IOException
IOExceptionprotected void appendEnvelope(StringBuilder buffer, ImapConnection.MessageWrapper message) throws IOException
IOExceptionprotected void appendEnvelopeHeader(StringBuilder buffer, String[] value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected void appendMailEnvelopeHeader(StringBuilder buffer, String[] value)
protected void appendEnvelopeHeaderValue(StringBuilder buffer, String value) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected void appendBodyStructure(StringBuilder buffer, ImapConnection.MessageWrapper message) throws IOException
IOExceptionprotected void appendBodyStructure(StringBuilder buffer, javax.mail.internet.MimeMultipart multiPart) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionprotected void appendBodyStructure(StringBuilder buffer, javax.mail.internet.MimePart bodyPart) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionprotected void appendBodyStructureValue(StringBuilder buffer, String value)
protected void appendBodyStructureValue(StringBuilder buffer, int value)
protected void sendSubFolders(String command, String folderPath, boolean recursive, boolean wildcard, boolean specialOnly) throws IOException
IOExceptionprotected ExchangeSession.MultiCondition appendOrSearchParams(String token, ImapConnection.SearchConditions conditions) throws IOException
IOExceptionprotected ExchangeSession.Condition appendNotSearchParams(String token, ImapConnection.SearchConditions conditions) throws IOException
IOExceptionprotected ExchangeSession.Condition appendSearchParam(ImapConnection.ImapTokenizer tokens, String token, ImapConnection.SearchConditions conditions) throws IOException
IOExceptionprotected ExchangeSession.Condition appendDateSearchParam(ImapConnection.ImapTokenizer tokens, String token) throws IOException
IOExceptionprotected boolean expunge(boolean silent)
                   throws IOException
IOExceptionprotected void updateFlags(ExchangeSession.Message message, String action, String flags) throws IOException
IOExceptionprotected void parseCredentials(ImapConnection.ImapTokenizer tokens) throws IOException
tokens - tokensIOException - on errorCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.