Initialize an mboxMMDFMessage instance.
(self, message=None)
| 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.""" |
nothing calls this directly
no test coverage detected