From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:09:08 +0000 (+0100) Subject: [3.12] gh-101760: Improve the imaplib.IMAP4 example (GH-101764) (#117191) X-Git-Tag: v3.12.3~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4326e07a8b02b090291a58646231a519da60d6ae;p=thirdparty%2FPython%2Fcpython.git [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> --- diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index 1f774e64b0ea..b16275fc148a 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -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')