]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-67512: Document IMAP4.append() flags argument (#149907)
authorSavage Mechanic <savagemechanic@github.com>
Sat, 16 May 2026 18:24:41 +0000 (19:24 +0100)
committerGitHub <noreply@github.com>
Sat, 16 May 2026 18:24:41 +0000 (11:24 -0700)
Doc/library/imaplib.rst

index b002f4978123e6d0b3509a94d0e6a6342cd2f062..df2468f7124e6d689ad7d52990953d448f366958 100644 (file)
@@ -199,6 +199,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)