MCPcopy Index your code
hub / github.com/RustPython/RustPython / append

Method append

Lib/imaplib.py:480–501  ·  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

478
479
480 def append(self, mailbox, flags, date_time, message):
481 """Append message to named mailbox.
482
483 (typ, [data]) = <instance>.append(mailbox, flags, date_time, message)
484
485 All args except 'message' can be None.
486 """
487 name = 'APPEND'
488 if not mailbox:
489 mailbox = 'INBOX'
490 if flags:
491 if (flags[0],flags[-1]) != ('(',')'):
492 flags = '(%s)' % flags
493 else:
494 flags = None
495 if date_time:
496 date_time = Time2Internaldate(date_time)
497 else:
498 date_time = None
499 literal = MapCRLF.sub(CRLF, message)
500 self.literal = literal
501 return self._simple_command(name, mailbox, flags, date_time)
502
503
504 def authenticate(self, mechanism, authobject):

Callers 15

loop_append.pyFile · 0.45
readMethod · 0.45
readlineMethod · 0.45
_append_untaggedMethod · 0.45
imaplib.pyFile · 0.45
_partial_prepare_mergerFunction · 0.45
_c3_mergeFunction · 0.45
_c3_mroFunction · 0.45
_compose_mroFunction · 0.45
__calc_am_pmMethod · 0.45
__calc_date_timeMethod · 0.45
_formatFunction · 0.45

Calls 3

_simple_commandMethod · 0.95
Time2InternaldateFunction · 0.85
subMethod · 0.45

Tested by 15

parseMethod · 0.36
_findMethod · 0.36
_failure_headerMethod · 0.36
summarizeMethod · 0.36
script_from_examplesFunction · 0.36
generate_slicesFunction · 0.36
_set_test_typeFunction · 0.36
addScreenshotsMethod · 0.36
printErrorsOverviewMethod · 0.36
printSkippedDetailMethod · 0.36