所谓无痕取信,目前主要是指从邮箱中把信件收取后,邮箱内状态不发生任何改变。这里的状态主要是指两部分,一部分是邮件状态不变,即已读与未读状态不变,另一部分是指邮箱记录的登陆IP不发生改变。本文中所说的伪“无痕”取信主要是指实现第一部分。

python中的真假值:

Python基础教程

1、Imaplib


-.1.-.Installing_Python_video.flv:

IMAP4.append(mailbox, flags, date_time, message):Append message to
named mailbox.

Any object can be tested  truth value,  use  an    condition  example, 0, 0.0 example, -defined classes,  the  defines a ()  () method, when that method returns the integer zero  bool value False. [1 built- functions that have a Boolean result always  0  False  false  1  True  true, unless otherwise stated. (Important exception: the Boolean operations    always  one of their operands.)

 

IMAP4.authenticate(mechanism, authobject):Authenticate command —
requires response processing.mechanism specifies which authentication
mechanism is to be used – it should appear in the instance variable
capabilities in the form AUTH=mechanism.

总结:

-.2.-.Numbers_and_Math_video.flv:

IMAP4.check():Checkpoint mailbox on server.


 

IMAP4.close():Close currently selected mailbox. Deleted messages are
removed from writable mailbox. This is the recommended command before
LOGOUT.

 ( x, y = 2 (.format(x, y, x  x1, y1 = 0, 10
 (.format(x1, y1, x1  x2, y2 = (.format(x2, y2, x2  
 ( * 50 ( (.format(x, y, x  x1, y1 = 0, 10
 (.format(x1, y1, x1  x2, y2 = (.format(x2, y2, x2  
 ( * 50 ( x = 2
 (.format(x,  x = (.format(x,  x))

-.3.-.Variables_video.flv:

IMAP4.copy(message_set, new_mailbox):Copy message_set messages onto
end of new_mailbox.

 

 

IMAP4.create(mailbox):Create new mailbox named mailbox.

Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32,    >>> ================================ RESTART ================================
>>> y ->  x  false,then y, 2  0 = 2 10 = 10 0 =
x  y ->  x  false,then x, 2  0 = 10 = 0 =
 x ->  x  false,then True, 2 = 0 =>>> 

-.4.-.Modules_and_Functions_video.flv:

IMAP4.delete(mailbox):Delete old mailbox named mailbox.

 

 

IMAP4.deleteacl(mailbox, who):Delete the ACLs (remove any rights) set
for who on mailbox.

Any object can be tested truth
value, use an condition example, 0, 0.0 example, -defined classes, the
defines a () () method, when that method returns the…

-.5.-.How_to_Save_Your_Programs_video.flv:

IMAP4.expunge():Permanently remove deleted items from selected mailbox.
Generates an EXPUNGE response for each deleted message. Returned data
contains a list of EXPUNGE message numbers in order received.

 

IMAP4.fetch(message_set, message_parts):Fetch (parts of) messages.
message_parts should be a string of message part names enclosed within
parentheses, eg: “(UID BODY[TEXT])”. Returned data are tuples of
message part envelope and data.

-.6.-.Strings_video.flv:

IMAP4.getacl(mailbox):Get the ACLs for mailbox. The method is
non-standard, but is supported by the Cyrus server.

 

IMAP4.getannotation(mailbox, entry, attribute):Retrieve the specified
ANNOTATIONs for mailbox. The method is non-standard, but is supported by
the Cyrus server.

-.7.-.More_on_Strings_video.flv:

IMAP4.getquota(root):Get the quota root‘s resource usage and limits.
This method is part of the IMAP4 QUOTA extension defined in rfc2087.

 

IMAP4.getquotaroot(mailbox):Get the list of quota roots for the named
mailbox. This method is part of the IMAP4 QUOTA extension defined in
rfc2087.

-.8.-.Raw_Input_video.flv:

IMAP4.list([directory[, pattern]]):List mailbox names in directory
matching pattern. directory defaults to the top-level mail folder, and
pattern defaults to match anything. Returned data contains a list of
LIST responses.

 

IMAP4.login(user, password):Identify the client using a plaintext
password. The password will be quoted.

-.9.-.Sequences_and_Lists_video.flv:

IMAP4.login_cram_md5(user, password):Force use of CRAM-MD5
authentication when identifying the client to protect the password. Will
only work if the server CAPABILITY response includes the phrase
AUTH=CRAM-MD5.

 

IMAP4.logout():Shutdown connection to server. Returns server BYE
response.

-.10.-.Slicing_video.flv:

IMAP4.lsub([directory[, pattern]]):List subscribed mailbox names in
directory matching pattern. directory defaults to the top level
directory and pattern defaults to match any mailbox. Returned data are
tuples of message part envelope and data.

 

IMAP4.myrights(mailbox):Show my ACLs for a mailbox (i.e. the rights
that I have on mailbox).

-.11.-.Editing_Sequences_video.flv:

IMAP4.namespace():Returns IMAP namespaces as defined in RFC2342.

 

IMAP4.noop():Send NOOP to server.

-.12.-.More_List_Functions_video.flv:

IMAP4.open(host, port):Opens socket to port at host. This method is
implicitly called by the IMAP4 constructor. The connection objects
established by this method will be used in the read, readline, send, and
shutdown methods. You may override this method.

 

IMAP4.partial(message_num, message_part, start, length):Fetch
truncated part of a message. Returned data is a tuple of message part
envelope and data.

-.13.-.Slicing_Lists_video.flv:

IMAP4.proxyauth(user):Assume authentication as user. Allows an
authorised administrator to proxy into any user’s mailbox.

 

IMAP4.read(size):Reads size bytes from the remote server. You may
override this method.

-.14.-.Intro.to.Methods.MP4:

IMAP4.readline():Reads one line from the remote server. You may
override this method.

 

IMAP4.recent():Prompt server for an update. Returned data is None if no
new messages, else value of RECENT response.

-.15.-.More.Methods.FLV:

发表评论

电子邮件地址不会被公开。 必填项已用*标注