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:
LilKS 2024-03-24 11:01:07 +01:00 committed by GitHub
parent a1e948edba
commit 39df773217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')