Home | Trees | Index | Help |
|
---|
Package twisted :: Package protocols :: Module imap4 :: Class IMAP4Server |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ |TimeoutMixin
--+ | IMAP4Server
Protocol implementation for an IMAP4rev1 server.
The server can be in any of four states:Method Summary | |
---|---|
__init__(self,
chal,
contextFactory)
| |
__cbAppend(self,
result,
tag,
mbox)
| |
__cbAuthChunk(self,
result,
chal,
tag)
| |
__cbAuthResp(self,
(iface,
avatar,
logout),
tag)
| |
__cbCheck(self,
result,
tag)
| |
__cbClose(self,
result,
tag)
| |
__cbCopied(self,
deferredIds,
tag,
mbox)
| |
__cbCopy(self,
messages,
tag,
mbox)
| |
__cbDispatch(self,
(arg,
rest),
tag,
fn,
args,
parseargs,
uid)
| |
__cbExpunge(self,
result,
tag)
| |
__cbFetch(self,
results,
tag,
query,
uid)
| |
__cbLogin(self,
(iface,
avatar,
logout),
tag)
| |
__cbManualSearch(self,
result,
tag,
mbox,
query,
uid,
searchResults)
| |
__cbSearch(self,
result,
tag,
mbox,
uid)
| |
__cbStatus(self,
status,
tag,
box)
| |
__cbStore(self,
result,
tag,
mbox,
uid,
silent)
| |
__doCommand(self,
tag,
handler,
args,
parseargs,
line,
uid)
| |
__ebAppend(self,
failure,
tag)
| |
__ebAuthChunk(self,
failure,
tag)
| |
__ebAuthResp(self,
failure,
tag)
| |
__ebCheck(self,
failure,
tag)
| |
__ebClose(self,
failure,
tag)
| |
__ebCopy(self,
failure,
tag)
| |
__ebDispatch(self,
failure,
tag)
| |
__ebExpunge(self,
failure,
tag)
| |
__ebFetch(self,
failure,
tag)
| |
__ebLogin(self,
failure,
tag)
| |
__ebSearch(self,
failure,
tag)
| |
__ebSpewMessage(self,
failure)
| |
__ebStatus(self,
failure,
tag,
box)
| |
__ebStore(self,
failure,
tag)
| |
_cbAppendGotMailbox(self,
mbox,
tag,
flags,
date,
message)
| |
_cbCopySelectedMailbox(self,
mbox,
tag,
messages,
mailbox,
uid)
| |
_cbListWork(self,
mailboxes,
tag,
sub,
cmdName)
| |
_cbSelectWork(self,
mbox,
cmdName,
tag)
| |
_cbStatusGotMailbox(self,
mbox,
tag,
mailbox,
names)
| |
_ebAppendGotMailbox(self,
failure,
tag)
| |
_ebCopySelectedMailbox(self,
failure,
tag)
| |
_ebListWork(self,
failure,
tag)
| |
_ebSelectWork(self,
failure,
cmdName,
tag)
| |
_ebStatusGotMailbox(self,
failure,
tag)
| |
_fileLiteral(self,
size)
| |
_listWork(self,
tag,
ref,
mbox,
sub,
cmdName)
| |
_parseMbox(self,
name)
| |
_respond(self,
state,
tag,
message)
| |
_selectWork(self,
tag,
name,
rw,
cmdName)
| |
_setupChallenge(self,
chal,
tag)
| |
_stringLiteral(self,
size)
| |
_unblock(self)
| |
Parse an astring from the line, return (arg, rest), possibly via a deferred (to handle literals) | |
Parse an atom from the line | |
fetch-att | |
Flag part of store-att-flag | |
Command line of UID command | |
Parse a literal from the line | |
Parse a (non-nested) parenthesised list from the line | |
searchkeys | |
sequence-set | |
authenticate(self,
chal,
tag)
| |
Lookup the account associated with the given parameters | |
capabilities(self)
| |
Called when the client issues a CHECK command. | |
connectionLost(self,
reason)
| |
Called when a connection is made. | |
dispatchCommand(self,
tag,
cmd,
rest,
uid)
| |
do_APPEND(self,
tag,
mailbox,
flags,
date,
message)
| |
do_AUTHENTICATE(self,
tag,
args)
| |
do_CAPABILITY(self,
tag)
| |
do_CHECK(self,
tag)
| |
do_CLOSE(self,
tag)
| |
do_COPY(self,
tag,
messages,
mailbox,
uid)
| |
do_CREATE(self,
tag,
name)
| |
do_DELETE(self,
tag,
name)
| |
do_EXPUNGE(self,
tag)
| |
do_FETCH(self,
tag,
messages,
query,
uid)
| |
do_IDLE(self,
tag)
| |
do_LOGIN(self,
tag,
user,
passwd)
| |
do_LOGOUT(self,
tag)
| |
do_NAMESPACE(self,
tag)
| |
do_NOOP(self,
tag)
| |
do_RENAME(self,
tag,
oldname,
newname)
| |
do_SEARCH(self,
tag,
charset,
query,
uid)
| |
do_STARTTLS(self,
tag)
| |
do_STATUS(self,
tag,
mailbox,
names)
| |
do_STORE(self,
tag,
messages,
mode,
flags,
uid)
| |
do_SUBSCRIBE(self,
tag,
name)
| |
do_UID(self,
tag,
command,
line)
| |
do_UNSUBSCRIBE(self,
tag,
name)
| |
flagsChanged(self,
newFlags)
| |
Override this for when each line is received. | |
listCapabilities(self)
| |
lookupCommand(self,
cmd)
| |
modeChanged(self,
writeable)
| |
newMessages(self,
exists,
recent)
| |
Optional charset of SEARCH command | |
Optional date-time string | |
Optional parenthesised list | |
parse_command(self,
line)
| |
parse_idle(self,
*args)
| |
parse_pending(self,
line)
| |
Override this for when raw data is received. | |
search_ALL(self,
query,
id,
msg)
| |
search_ANSWERED(self,
query,
id,
msg)
| |
search_BCC(self,
query,
id,
msg)
| |
search_BEFORE(self,
query,
id,
msg)
| |
search_BODY(self,
query,
id,
msg)
| |
search_CC(self,
query,
id,
msg)
| |
search_DELETED(self,
query,
id,
msg)
| |
search_DRAFT(self,
query,
id,
msg)
| |
search_FLAGGED(self,
query,
id,
msg)
| |
search_FROM(self,
query,
id,
msg)
| |
search_HEADER(self,
query,
id,
msg)
| |
search_KEYWORD(self,
query,
id,
msg)
| |
search_LARGER(self,
query,
id,
msg)
| |
search_NEW(self,
query,
id,
msg)
| |
search_NOT(self,
query,
id,
msg)
| |
search_OLD(self,
query,
id,
msg)
| |
search_ON(self,
query,
id,
msg)
| |
search_OR(self,
query,
id,
msg)
| |
search_RECENT(self,
query,
id,
msg)
| |
search_SEEN(self,
query,
id,
msg)
| |
search_SENTBEFORE(self,
query,
id,
msg)
| |
search_SENTON(self,
query,
id,
msg)
| |
search_SENTSINCE(self,
query,
id,
msg)
| |
search_SINCE(self,
query,
id,
msg)
| |
search_SMALLER(self,
query,
id,
msg)
| |
search_SUBJECT(self,
query,
id,
msg)
| |
search_TEXT(self,
query,
id,
msg)
| |
search_TO(self,
query,
id,
msg)
| |
search_UID(self,
query,
id,
msg)
| |
search_UNANSWERED(self,
query,
id,
msg)
| |
search_UNDELETED(self,
query,
id,
msg)
| |
search_UNDRAFT(self,
query,
id,
msg)
| |
search_UNFLAGGED(self,
query,
id,
msg)
| |
search_UNKEYWORD(self,
query,
id,
msg)
| |
search_UNSEEN(self,
query,
id,
msg)
| |
searchFilter(self,
query,
id,
msg)
| |
sendBadResponse(self,
tag,
message)
| |
sendContinuationRequest(self,
msg)
| |
sendNegativeResponse(self,
tag,
message)
| |
sendPositiveResponse(self,
tag,
message)
| |
sendServerGreeting(self)
| |
sendUntaggedResponse(self,
message,
async)
| |
singleSearchStep(self,
query,
id,
msg)
| |
spew_body(self,
part,
id,
msg,
_w,
_f)
| |
spew_bodystructure(self,
id,
msg,
_w,
_f)
| |
spew_envelope(self,
id,
msg,
_w,
_f)
| |
spew_flags(self,
id,
msg,
_w,
_f)
| |
spew_internaldate(self,
id,
msg,
_w,
_f)
| |
spew_rfc822(self,
id,
msg,
_w,
_f)
| |
spew_rfc822header(self,
id,
msg,
_w,
_f)
| |
spew_rfc822size(self,
id,
msg,
_w,
_f)
| |
spew_rfc822text(self,
id,
msg,
_w,
_f)
| |
spew_uid(self,
id,
msg,
_w,
_f)
| |
spewMessage(self,
id,
msg,
query,
uid)
| |
Called when the connection times out. | |
Inherited from LineReceiver | |
Clear buffered data. | |
Protocol.dataReceived. | |
Called when the maximum line length has been reached. | |
Sends a line to the other end of the connection. | |
Sets the line-mode of this receiver. | |
Sets the raw mode of this receiver. | |
Inherited from Protocol | |
(Deprecated) | |
Inherited from BaseProtocol | |
Make a connection to a transport and a server. | |
Inherited from TimeoutMixin | |
Reset the timeout count down | |
Change the timeout period |
Class Variable Summary | |
---|---|
tuple |
__implements__ = (<class twisted.protocols.imap4.IMailbo...
|
int |
_literalStringLimit = 4096 |
NoneType |
_onLogout = None |
NoneType |
_pendingLiteral = None |
NoneType |
account = None |
SRE_Pattern |
atomre = ([^\]\(\)\{%\*"\\ |