Initialize an mboxMMDFMessage instance.
(self, message=None)
| 1720 | _type_specific_attributes = ['_from'] |
| 1721 | |
| 1722 | def __init__(self, message=None): |
| 1723 | """Initialize an mboxMMDFMessage instance.""" |
| 1724 | self.set_from('MAILER-DAEMON', True) |
| 1725 | if isinstance(message, email.message.Message): |
| 1726 | unixfrom = message.get_unixfrom() |
| 1727 | if unixfrom is not None and unixfrom.startswith('From '): |
| 1728 | self.set_from(unixfrom[5:]) |
| 1729 | Message.__init__(self, message) |
| 1730 | |
| 1731 | def get_from(self): |
| 1732 | """Return contents of "From " line.""" |
nothing calls this directly
no test coverage detected