mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)
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
1d0e22e500
commit
4326e07a8b
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