|
__init__(self,
host=None,
port=None,
debug=None,
debug_file=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
open(host=None,
port=None)
Setup connection to remote server on "host:port"
(default: localhost:standard IMAP4 port). |
source code
|
|
|
open_socket(self)
Open socket choosing first address family available. |
source code
|
|
|
read(self,
size)
data = read(size) Read at most 'size' bytes from remote. |
source code
|
|
|
|
|
shutdown()
Close I/O established in "open". |
source code
|
|
|
socket(self)
socket = socket() Return socket instance used to connect to IMAP4
server. |
source code
|
|
|
recent(self,
**kw)
(typ, [data]) = recent() Return most recent 'RECENT' responses if any
exist, else prompt server for an update using the 'NOOP' command. |
source code
|
|
|
response(self,
code,
**kw)
(code, [data]) = response(code) Return data for response 'code' if
received, or None. |
source code
|
|
|
append(self,
mailbox,
flags,
date_time,
message,
**kw)
(typ, [data]) = append(mailbox, flags, date_time, message) Append
message to named mailbox. |
source code
|
|
|
authenticate(self,
mechanism,
authobject,
**kw)
(typ, [data]) = authenticate(mechanism, authobject)
Authenticate command - requires response processing. |
source code
|
|
|
capability(self,
**kw)
(typ, [data]) = capability() Fetch capabilities list from server. |
source code
|
|
|
check(self,
**kw)
(typ, [data]) = check() Checkpoint mailbox on server. |
source code
|
|
|
close(self,
**kw)
(typ, [data]) = close() Close currently selected mailbox. |
source code
|
|
|
copy(self,
message_set,
new_mailbox,
**kw)
(typ, [data]) = copy(message_set, new_mailbox) Copy 'message_set'
messages onto end of 'new_mailbox'. |
source code
|
|
|
create(self,
mailbox,
**kw)
(typ, [data]) = create(mailbox) Create new mailbox. |
source code
|
|
|
delete(self,
mailbox,
**kw)
(typ, [data]) = delete(mailbox) Delete old mailbox. |
source code
|
|
|
deleteacl(self,
mailbox,
who,
**kw)
(typ, [data]) = deleteacl(mailbox, who) Delete the ACLs (remove any
rights) set for who on mailbox. |
source code
|
|
|
examine(self,
mailbox=' INBOX ' ,
**kw)
(typ, [data]) = examine(mailbox='INBOX', readonly=False) Select a
mailbox for READ-ONLY access. |
source code
|
|
|
expunge(self,
**kw)
(typ, [data]) = expunge() Permanently remove deleted items from
selected mailbox. |
source code
|
|
|
fetch(self,
message_set,
message_parts,
**kw)
(typ, [data, ...]) = fetch(message_set, message_parts) Fetch (parts
of) messages. |
source code
|
|
|
getacl(self,
mailbox,
**kw)
(typ, [data]) = getacl(mailbox) Get the ACLs for a mailbox. |
source code
|
|
|
getannotation(self,
mailbox,
entry,
attribute,
**kw)
(typ, [data]) = getannotation(mailbox, entry, attribute) Retrieve
ANNOTATIONs. |
source code
|
|
|
getquota(self,
root,
**kw)
(typ, [data]) = getquota(root) Get the quota root's resource usage
and limits. |
source code
|
|
|
getquotaroot(self,
mailbox,
**kw)
(typ, [[QUOTAROOT responses...], [QUOTA responses...]]) =
getquotaroot(mailbox) Get the list of quota roots for the named
mailbox. |
source code
|
|
|
idle(self,
timeout=None,
**kw)
"(typ, [data]) = idle(timeout=None) Put server into IDLE mode
until server notifies some change, or 'timeout' (secs) occurs
(default: 29 minutes), or another IMAP4 command is scheduled. |
source code
|
|
|
list(self,
directory=' "" ' ,
pattern=' * ' ,
**kw)
(typ, [data]) = list(directory='""', pattern='*') List
mailbox names in directory matching pattern. |
source code
|
|
|
login(self,
user,
password,
**kw)
(typ, [data]) = login(user, password) Identify client using plaintext
password. |
source code
|
|
|
login_cram_md5(self,
user,
password,
**kw)
(typ, [data]) = login_cram_md5(user, password) Force use of CRAM-MD5
authentication. |
source code
|
|
|
_CRAM_MD5_AUTH(self,
challenge)
Authobject to use with CRAM-MD5 authentication. |
source code
|
|
|
logout(self,
**kw)
(typ, [data]) = logout() Shutdown connection to server. |
source code
|
|
|
lsub(self,
directory=' "" ' ,
pattern=' * ' ,
**kw)
(typ, [data, ...]) = lsub(directory='""', pattern='*') List
'subscribed' mailbox names in directory matching pattern. |
source code
|
|
|
myrights(self,
mailbox)
(typ, [data]) = myrights(mailbox) Show my ACLs for a mailbox (i.e. |
source code
|
|
|
namespace(self,
**kw)
(typ, [data, ...]) = namespace() Returns IMAP namespaces ala rfc2342. |
source code
|
|
|
noop(self,
**kw)
(typ, [data]) = noop() Send NOOP command. |
source code
|
|
|
partial(self,
message_num,
message_part,
start,
length,
**kw)
(typ, [data, ...]) = partial(message_num, message_part, start,
length) Fetch truncated part of a message. |
source code
|
|
|
proxyauth(self,
user,
**kw)
(typ, [data]) = proxyauth(user) Assume authentication as 'user'. |
source code
|
|
|
rename(self,
oldmailbox,
newmailbox,
**kw)
(typ, [data]) = rename(oldmailbox, newmailbox) Rename old mailbox
name to new. |
source code
|
|
|
search(self,
charset,
*criteria,
**kw)
(typ, [data]) = search(charset, criterion, ...) Search mailbox for
matching messages. |
source code
|
|
|
select(self,
mailbox=' INBOX ' ,
readonly=False,
**kw)
(typ, [data]) = select(mailbox='INBOX', readonly=False) Select a
mailbox. |
source code
|
|
|
setacl(self,
mailbox,
who,
what,
**kw)
(typ, [data]) = setacl(mailbox, who, what) Set a mailbox acl. |
source code
|
|
|
setannotation(self,
*args,
**kw)
(typ, [data]) = setannotation(mailbox[, entry, attribute]+) Set
ANNOTATIONs. |
source code
|
|
|
setquota(self,
root,
limits,
**kw)
(typ, [data]) = setquota(root, limits) Set the quota root's resource
limits. |
source code
|
|
|
sort(self,
sort_criteria,
charset,
*search_criteria,
**kw)
(typ, [data]) = sort(sort_criteria, charset, search_criteria, ...)
IMAP4rev1 extension SORT command. |
source code
|
|
|
status(self,
mailbox,
names,
**kw)
(typ, [data]) = status(mailbox, names) Request named status
conditions for mailbox. |
source code
|
|
|
store(self,
message_set,
command,
flags,
**kw)
(typ, [data]) = store(message_set, command, flags) Alters flag
dispositions for messages in mailbox. |
source code
|
|
|
subscribe(self,
mailbox,
**kw)
(typ, [data]) = subscribe(mailbox) Subscribe to new mailbox. |
source code
|
|
|
thread(self,
threading_algorithm,
charset,
*search_criteria,
**kw)
(type, [data]) = thread(threading_alogrithm, charset,
search_criteria, ...) IMAPrev1 extension THREAD command. |
source code
|
|
|
uid(self,
command,
*args,
**kw)
(typ, [data]) = uid(command, arg, ...)
Execute "command arg ..." with messages identified by UID,
rather than message number. |
source code
|
|
|
unsubscribe(self,
mailbox,
**kw)
(typ, [data]) = unsubscribe(mailbox) Unsubscribe from old mailbox. |
source code
|
|
|
xatom(self,
name,
*args,
**kw)
(typ, [data]) = xatom(name, arg, ...) Allow simple extension commands
notified by server in CAPABILITY response. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
_command_completer(self,
(response, cb_arg, error)) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_request_push(self,
tag=None,
name=None,
**kw) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_init_debug(self,
debug=None,
debug_file=None) |
source code
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|