We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be34141 commit e8a8509Copy full SHA for e8a8509
1 file changed
Doc/library/imaplib.rst
@@ -317,6 +317,12 @@ An :class:`IMAP4` instance has the following methods:
317
:keyword:`with` statement, produces IMAP untagged responses via the
318
:term:`iterator` protocol, and sends ``DONE`` upon context exit.
319
320
+ All untagged responses that arrive after sending the ``IDLE`` command
321
+ (including any that arrive before the server acknowledges the command) will
322
+ be available via iteration. Any leftover responses (those not iterated in
323
+ the :keyword:`with` context) can be retrieved in the usual way after
324
+ ``IDLE`` ends, using :meth:`IMAP4.response`.
325
+
326
Responses are represented as ``(type, [data, ...])`` tuples, as described
327
in :ref:`IMAP4 Objects <imap4-objects>`.
328
0 commit comments