Skip to content

Commit

Permalink
[3.11] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117192
Browse files Browse the repository at this point in the history
)

Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
  • Loading branch information
3 people committed Mar 24, 2024
1 parent de43ce1 commit 5d12230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/imaplib.rst
Expand Up @@ -632,7 +632,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 5d12230

Please sign in to comment.