FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-67512: Document parameters of imaplib's append by Rajendra1308 · Pull Request #113506 · python/cpython · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
18 changes: 17 additions & 1 deletion Doc/library/imaplib.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,23 @@ An :class:`IMAP4` instance has the following methods:

.. method:: IMAP4.append(mailbox, flags, date_time, message)

Append *message* to named mailbox.
Append *message* to a named *mailbox*.

*flags* is a space-separated string containing IMAP flags tokens.

System flags defined in :rfc:`RFC 3501 <3501#section-2.3.2>` are:

* ``\Seen`` - Message has been read.
* ``\Answered`` - Message has been answered.
* ``\Flagged`` - Message is "flagged" for urgent/special attention.
* ``\Deleted`` - Message is "deleted" for removal by later ``EXPUNGE``.
* ``\Draft`` - Message has not completed composition (marked as a draft).
* ``\Recent`` - Message is "recently" arrived in this mailbox.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The \Recent flag is supposed to be managed automatically by the server. It seems misleading to list it under the append method.


*date_time* is the date and time associated with the message.

*message* is a string representing the entire email message, including
headers and body.


.. method:: IMAP4.authenticate(mechanism, authobject)
Expand Down

Back | FazBrowse Home | New Git URL