MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / append

Method append

tools/python-3.11.9-amd64/Lib/imaplib.py:394–417  ·  view source on GitHub ↗

Append message to named mailbox. (typ, [data]) = .append(mailbox, flags, date_time, message) All args except `message' can be None.

(self, mailbox, flags, date_time, message)

Source from the content-addressed store, hash-verified

392
393
394 def append(self, mailbox, flags, date_time, message):
395 """Append message to named mailbox.
396
397 (typ, [data]) = <instance>.append(mailbox, flags, date_time, message)
398
399 All args except `message&#x27; can be None.
400 """
401 name = 'APPEND'
402 if not mailbox:
403 mailbox = 'INBOX'
404 if flags:
405 if (flags[0],flags[-1]) != ('(',')'):
406 flags = '(%s)' % flags
407 else:
408 flags = None
409 if date_time:
410 date_time = Time2Internaldate(date_time)
411 else:
412 date_time = None
413 literal = MapCRLF.sub(CRLF, message)
414 if self.utf8_enabled:
415 literal = b'UTF8 (' + literal + b')'
416 self.literal = literal
417 return self._simple_command(name, mailbox, flags, date_time)
418
419
420 def authenticate(self, mechanism, authobject):

Callers 15

_append_untaggedMethod · 0.45
imaplib.pyFile · 0.45
_c3_mergeFunction · 0.45
_c3_mroFunction · 0.45
_compose_mroFunction · 0.45
__calc_am_pmMethod · 0.45
_formatFunction · 0.45
_splitlines_no_ffFunction · 0.45
get_source_segmentFunction · 0.45
generic_visitMethod · 0.45
visit_JoinedStrMethod · 0.45
os.pyFile · 0.45

Calls 3

_simple_commandMethod · 0.95
Time2InternaldateFunction · 0.85
subMethod · 0.45

Tested by 6

parseMethod · 0.36
_findMethod · 0.36
_failure_headerMethod · 0.36
summarizeMethod · 0.36
script_from_examplesFunction · 0.36
mainFunction · 0.36