]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-67512: Document IMAP4.append() flags argument (GH-149907) (GH-153077)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jul 2026 08:03:59 +0000 (10:03 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2026 08:03:59 +0000 (08:03 +0000)
(cherry picked from commit 5f8d9d35753e22946880d4fefb123e8234706266)

Co-authored-by: Savage Mechanic <savagemechanic@github.com>
Doc/library/imaplib.rst

index 96541d297e472bfaaff1b533a197e799864efe17..efe8e6534e39c887789c329b29723fe6f1299840 100644 (file)
@@ -216,6 +216,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)