Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,23 @@ The second subclass allows for connections created by a child process:
The following utility functions are defined:


.. function:: Internaldate2tuple(datestr)
.. function:: Internaldate2tuple(resp)

Parse an IMAP4 ``INTERNALDATE`` string and return corresponding local
time. The return value is a :class:`time.struct_time` tuple or
``None`` if the string has wrong format.
Parse a :term:`bytes-like object` containing an IMAP4 ``INTERNALDATE``
response and return the corresponding local time. The return value is a
:class:`time.struct_time` tuple or ``None`` if the input has wrong format.

.. function:: Int2AP(num)

Converts an integer into a bytes representation using characters from the set
[``A`` .. ``P``].


.. function:: ParseFlags(flagstr)
.. function:: ParseFlags(resp)

Converts an IMAP4 ``FLAGS`` response to a tuple of individual flags.
Converts a :term:`bytes-like object` containing an IMAP4 ``FLAGS`` response
to a tuple of individual flags as :class:`bytes`. The return value is an
empty tuple if the input has wrong format.


.. function:: Time2Internaldate(date_time)
Expand Down Expand Up @@ -729,4 +731,3 @@ retrieves and prints all messages::
print('Message %s\n%s\n' % (num, data[0][1]))
M.close()
M.logout()

Loading