From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 5 Jul 2026 08:05:51 +0000 (+0200) Subject: [3.15] gh-67512: Document IMAP4.append() flags argument (GH-149907) (GH-153078) X-Git-Tag: v3.15.0b4~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f09f5dced1ee37aa8b9eb923514e74ba84b56b14;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-67512: Document IMAP4.append() flags argument (GH-149907) (GH-153078) (cherry picked from commit 5f8d9d35753e22946880d4fefb123e8234706266) Co-authored-by: Savage Mechanic --- diff --git a/Doc/library/imaplib.rst b/Doc/library/imaplib.rst index 8732aa15d2f1..38a749b95f3e 100644 --- a/Doc/library/imaplib.rst +++ b/Doc/library/imaplib.rst @@ -209,6 +209,11 @@ An :class:`IMAP4` instance has the following methods: Append *message* to named mailbox. + *flags* may be ``None`` or a string of IMAP flag tokens. Multiple + flags are separated by spaces, for example ``r'\Seen \Answered'``. + If *flags* is not already enclosed in parentheses, parentheses are + added automatically. + .. method:: IMAP4.authenticate(mechanism, authobject)