MCPcopy Index your code
hub / github.com/python/cpython / append

Method append

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

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

Callers 15

conf.pyFile · 0.45
getTextFunction · 0.45
get_para_line_numbersFunction · 0.45
tracerFunction · 0.45
write_documentsMethod · 0.45
__init__Method · 0.45
make_grammar_snippetMethod · 0.45
make_name_targetMethod · 0.45
runMethod · 0.45
runMethod · 0.45
read_refcount_dataFunction · 0.45

Calls 3

_simple_commandMethod · 0.95
Time2InternaldateFunction · 0.85
subMethod · 0.45

Tested by 10

parseMethod · 0.36
_findMethod · 0.36
_failure_headerMethod · 0.36
summarizeMethod · 0.36
script_from_examplesFunction · 0.36
notifyTestFailedMethod · 0.36
notifyTestErroredMethod · 0.36
mainFunction · 0.36
mainFunction · 0.36
_encode_base64Function · 0.36