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