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

Method set_from

tools/python-3.11.9-amd64/Lib/mailbox.py:1654–1660  ·  view source on GitHub ↗

Set "From " line, formatting and appending time_ if specified.

(self, from_, time_=None)

Source from the content-addressed store, hash-verified

1652 return self._from
1653
1654 def set_from(self, from_, time_=None):
1655 """Set "From " line, formatting and appending time_ if specified."""
1656 if time_ is not None:
1657 if time_ is True:
1658 time_ = time.gmtime()
1659 from_ += ' ' + time.asctime(time_)
1660 self._from = from_
1661
1662 def get_flags(self):
1663 """Return as a string the flags that are set."""

Callers 4

__init__Method · 0.95
get_messageMethod · 0.80
_explain_toMethod · 0.80
_explain_toMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected