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

Method __init__

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

Initialize an mboxMMDFMessage instance.

(self, message=None)

Source from the content-addressed store, hash-verified

1639 _type_specific_attributes = ['_from']
1640
1641 def __init__(self, message=None):
1642 """Initialize an mboxMMDFMessage instance."""
1643 self.set_from('MAILER-DAEMON', True)
1644 if isinstance(message, email.message.Message):
1645 unixfrom = message.get_unixfrom()
1646 if unixfrom is not None and unixfrom.startswith('From '):
1647 self.set_from(unixfrom[5:])
1648 Message.__init__(self, message)
1649
1650 def get_from(self):
1651 """Return contents of "From " line."""

Callers

nothing calls this directly

Calls 4

set_fromMethod · 0.95
get_unixfromMethod · 0.80
startswithMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected