Skip to content

Commit 4326e07

Browse files
miss-islingtonLilKSAA-Turner
authored
[3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191)
Co-authored-by: LilKS <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent 1d0e22e commit 4326e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/imaplib.rst

+1-1
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)