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