8000 gh-101760: Improve the imaplib.IMAP4 example (#101764) · python/cpython@39df773 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39df773

Browse files
LilKSAA-Turner
andauthored
gh-101760: Improve the imaplib.IMAP4 example (#101764)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent a1e948e commit 39df773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/imaplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ retrieves and prints all messages::
622622

623623
import getpass, imaplib
624624

625-
M = imaplib.IMAP4()
625+
M = imaplib.IMAP4(host='example.org')
626626
M.login(getpass.getuser(), getpass.getpass())
627627
M.select()
628628
typ, data = M.search(None, 'ALL')

0 commit comments

Comments
 (0)
0