Skip to content
Closed
Changes from 1 commit
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
Next Next commit
gh-148770: Document quoting requirement for IMAP mailbox names with s…
…paces

Add a note to IMAP4.select() documenting that mailbox names containing
spaces must be quoted by the caller, e.g. M.select('"my important mail"').
  • Loading branch information
CodeLine9 committed Apr 19, 2026
commit 60b03d2fcde8936303d5212c288f7e367db19549
6 changes: 6 additions & 0 deletions Doc/library/imaplib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ An :class:`IMAP4` instance has the following methods:
(``EXISTS`` response). The default *mailbox* is ``'INBOX'``. If the *readonly*
flag is set, modifications to the mailbox are not allowed.

.. note::

Mailbox names containing spaces must be quoted by the caller.
For example, to select a mailbox named ``my important mail``, use
``M.select('"my important mail"')``.


.. method:: IMAP4.send(data)

Expand Down
Loading