Skip to content

Commit

Permalink
pythongh-101760: Improve the imaplib.IMAP4 example (python#101764)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
LilKS and AA-Turner committed Mar 24, 2024
1 parent a1e948e commit 39df773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/imaplib.rst
Expand Up @@ -622,7 +622,7 @@ retrieves and prints all messages::

import getpass, imaplib

M = imaplib.IMAP4()
M = imaplib.IMAP4(host='example.org')
M.login(getpass.getuser(), getpass.getpass())
M.select()
typ, data = M.search(None, 'ALL')
Expand Down

0 comments on commit 39df773

Please sign in to comment.