mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.11] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117192)
Co-authored-by: LilKS <1244886+LilKS@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
de43ce11cc
commit
5d12230095
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue