Changeset 391 for python/trunk/Doc/library/imaplib.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/imaplib.rst
r2 r391 17 17 pair: IMAP4_stream; protocol 18 18 19 **Source code:** :source:`Lib/imaplib.py` 20 21 -------------- 22 19 23 This module defines three classes, :class:`IMAP4`, :class:`IMAP4_SSL` and 20 24 :class:`IMAP4_stream`, which encapsulate a connection to an IMAP4 server and … … 85 89 .. function:: Internaldate2tuple(datestr) 86 90 87 Converts an IMAP4 INTERNALDATE string to Coordinated Universal Time. Returns a88 :mod:`time` module tuple.89 91 Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local 92 time. The return value is a :class:`time.struct_time` instance or 93 None if the string has wrong format. 90 94 91 95 .. function:: Int2AP(num) … … 102 106 .. function:: Time2Internaldate(date_time) 103 107 104 Converts a :mod:`time` module tuple to an IMAP4 ``INTERNALDATE`` representation. 105 Returns a string in the form: ``"DD-Mmm-YYYY HH:MM:SS +HHMM"`` (including 106 double-quotes). 108 Convert *date_time* to an IMAP4 ``INTERNALDATE`` representation. The 109 return value is a string in the form: ``"DD-Mmm-YYYY HH:MM:SS 110 +HHMM"`` (including double-quotes). The *date_time* argument can be a 111 number (int or float) representing seconds since epoch (as returned 112 by :func:`time.time`), a 9-tuple representing local time (as returned by 113 :func:`time.localtime`), or a double-quoted string. In the last case, it 114 is assumed to already be in the correct format. 107 115 108 116 Note that IMAP4 message numbers change as the mailbox changes; in particular, … … 304 312 .. method:: IMAP4.open(host, port) 305 313 306 Opens socket to *port* at *host*. The connection objects established by this 307 method will be used in the ``read``, ``readline``, ``send``, and ``shutdown`` 308 methods. You may override this method. 314 Opens socket to *port* at *host*. This method is implicitly called by 315 the :class:`IMAP4` constructor. The connection objects established by this 316 method will be used in the :meth:`IMAP4.read`, :meth:`IMAP4.readline`, 317 :meth:`IMAP4.send`, and :meth:`IMAP4.shutdown` methods. You may override 318 this method. 309 319 310 320 … … 402 412 .. method:: IMAP4.shutdown() 403 413 404 Close connection established in ``open``. You may override this method. 414 Close connection established in ``open``. This method is implicitly 415 called by :meth:`IMAP4.logout`. You may override this method. 405 416 406 417
Note:
See TracChangeset
for help on using the changeset viewer.