Skip to content

Commit

Permalink
Docstring explaining dict usage in multiappend
Browse files Browse the repository at this point in the history
  • Loading branch information
d70-t authored and mjs committed Jan 25, 2022
1 parent 05dbfb4 commit d269758
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions imapclient/imapclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,8 +1424,11 @@ def append(self, folder, msg, flags=(), msg_time=None):
def multiappend(self, folder, msgs):
"""Append messages to *folder* using the MULTIAPPEND feature from :rfc:`3502`.
*msgs* should be a list of strings containing the full message including
headers.
*msgs* must be an iterable. Each item must be either a string containing the
full message including headers, or a dict containing the keys "msg" with the
full message as before, "flags" with a sequence of message flags to set, and
"date" with a datetime instance specifying the internal date to set.
The keys "flags" and "date" are optional.
Returns the APPEND response from the server.
"""
Expand Down

0 comments on commit d269758

Please sign in to comment.