Skip to content

Commit 5d12230

Browse files
miss-islingtonLilKSAA-Turner
authored
[3.11] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117192)
Co-authored-by: LilKS <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent de43ce1 commit 5d12230

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
@@ -632,7 +632,7 @@ retrieves and prints all messages::
632632

633633
import getpass, imaplib
634634

635-
M = imaplib.IMAP4()
635+
M = imaplib.IMAP4(host='example.org')
636636
M.login(getpass.getuser(), getpass.getpass())
637637
M.select()
638638
typ, data = M.search(None, 'ALL')

0 commit comments

Comments
 (0)