PyDocs

Nav

Internet Data Handling

_structure

  • _structure(msg, fp=None, level=0, include_default=False)
A handy debugging aid
1 Example
>>> msg = email.message_from_file(somefile)
>>> _structure(msg)
multipart/mixed
    text/plain
    text/plain
    multipart/digest
        message/rfc822
            text/plain
        message/rfc822
            text/plain
        message/rfc822
            text/plain
        message/rfc822
            text/plain
        message/rfc822
            text/plain
    text/plain
from the Python docs
See Also
No see-alsos for email.iterators/_structure
0 Notes
No notes for _structure