Module Expr Str Assign NameStore ListLoad Str Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body TryExcept body Expr Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareEq AttributeLoad NameLoad attr Num body Print AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Print AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad body Print AttributeLoad NameLoad attr NameLoad orelse Print AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str attr Print AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore ListLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad If CompareNotEq Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Print AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print AttributeLoad NameLoad attr BinOpAdd Str NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num For NameStore NameLoad body Print AttributeLoad NameLoad attr BinOpAdd Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd Str NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Print AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Print NameLoad Call AttributeLoad NameLoad attr keyword NameLoad orelse If CompareEq NameLoad Str body Pass orelse Print NameLoad BinOpMod AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list Assign NameStore Call NameLoad Call NameLoad BinOpSub AttributeLoad NameLoad attr Num Assign NameStore BinOpMod Str NameLoad FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMult Str Num BinOpMod NameLoad NameLoad Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore NameLoad Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Break Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad AugAssignAdd NameStore Num Return NameLoad decorator_list
N/A N/A Classes to generate plain text from a message object tree. N/A __all__ N/A Generator DecodedGenerator N/A re N/A sys N/A time N/A random N/A warnings cStringIO StringIO email.header Header N/A UNDERSCORE _ N/A NL N/A fcre N/A N/A re compile ^From  N/A re MULTILINE _is8bitstring N/A N/A s N/A N/A N/A N/A isinstance s str N/A N/A N/A N/A N/A unicode s us-ascii N/A N/A N/A UnicodeError N/A N/A True N/A False N/A Generator N/A N/A N/A Generates output from a Message object tree.

    This basic generator writes the message to the given file object as plain
    text.
     __init__ N/A N/A self outfp mangle_from_ maxheaderlen N/A True 78 N/A N/A Create the generator for message flattening.

        outfp is the output file-like object for writing the message to.  It
        must have a write() method.

        Optional mangle_from_ is a flag that, when True (the default), escapes
        From_ lines in the body of the message by putting a `>' in front of
        them.

        Optional maxheaderlen specifies the longest length for a non-continued
        header.  When a header line is longer (in characters, with tabs
        expanded to 8 spaces) than maxheaderlen, the header will split as
        defined in the Header class.  Set maxheaderlen to zero to disable
        header wrapping.  The default is 78, as recommended (but not required)
        by RFC 2822.
         N/A N/A self _fp outfp N/A N/A self _mangle_from_ mangle_from_ N/A N/A self _maxheaderlen maxheaderlen N/A write N/A N/A self s N/A N/A N/A N/A N/A N/A self _fp write s N/A flatten N/A N/A self msg unixfrom N/A False N/A N/A Print the message object tree rooted at msg to the output file
        specified when the Generator instance was created.

        unixfrom is a flag that forces the printing of a Unix From_ delimiter
        before the first object in the message tree.  If the original message
        has no From_ delimiter, a `standard' one is crafted.  By default, this
        is False to inhibit the printing of any From_ delimiter.

        Note that for subobjects, no From_ line is printed.
         N/A unixfrom N/A N/A ufrom N/A N/A msg get_unixfrom N/A N/A ufrom N/A N/A ufrom N/A From nobody  N/A N/A time ctime N/A N/A time time N/A N/A self _fp ufrom N/A N/A N/A self _write msg N/A clone N/A N/A self fp N/A N/A N/A Clone this generator with the exact same options. N/A N/A N/A self __class__ fp N/A self _mangle_from_ N/A self _maxheaderlen N/A _write N/A N/A self msg N/A N/A N/A oldfp N/A self _fp N/A N/A N/A N/A self _fp sfp N/A StringIO N/A N/A N/A self _dispatch msg N/A N/A N/A self _fp oldfp N/A meth N/A getattr msg _write_headers None N/A N/A meth None N/A N/A N/A N/A self _write_headers msg N/A N/A N/A meth self N/A N/A N/A N/A self _fp write N/A N/A sfp getvalue N/A _dispatch N/A N/A self msg N/A N/A N/A main N/A N/A msg get_content_maintype N/A sub N/A N/A msg get_content_subtype N/A specific N/A N/A N/A N/A UNDERSCORE join N/A main sub replace - _ N/A meth N/A getattr self N/A _handle_ specific None N/A N/A meth None N/A N/A generic N/A N/A main replace - _ N/A meth N/A getattr self N/A _handle_ generic None N/A N/A meth None N/A N/A meth N/A self _writeBody N/A N/A meth msg N/A _write_headers N/A N/A self msg N/A N/A N/A N/A h v N/A N/A msg items N/A N/A N/A self _fp N/A %s: h N/A N/A N/A self _maxheaderlen 0 N/A N/A N/A self _fp v N/A N/A N/A isinstance v Header N/A N/A N/A self _fp N/A N/A v encode N/A N/A N/A _is8bitstring v N/A N/A N/A self _fp v N/A N/A N/A self _fp N/A N/A N/A Header v maxlinelen N/A self _maxheaderlen header_name h continuation_ws encode N/A N/A self _fp N/A _handle_text N/A N/A self msg N/A N/A N/A payload N/A N/A msg get_payload N/A N/A payload None N/A N/A N/A N/A N/A isinstance payload basestring N/A N/A N/A TypeError N/A string payload expected: %s N/A type payload N/A N/A self _mangle_from_ N/A N/A payload N/A N/A fcre sub >From  payload N/A N/A N/A N/A self _fp write payload N/A N/A _writeBody _handle_text _handle_multipart N/A N/A self msg N/A N/A N/A msgtexts N/A N/A subparts N/A N/A msg get_payload N/A N/A subparts None N/A N/A subparts N/A N/A N/A N/A isinstance subparts basestring N/A N/A N/A N/A N/A self _fp write subparts N/A N/A N/A N/A N/A isinstance subparts list N/A N/A subparts N/A subparts N/A part subparts N/A N/A s N/A StringIO N/A g N/A N/A self clone s N/A N/A N/A g flatten part unixfrom False N/A N/A N/A msgtexts append N/A N/A s getvalue N/A alltext N/A N/A NL join msgtexts N/A boundary N/A N/A msg get_boundary failobj N/A _make_boundary alltext N/A N/A N/A N/A msg get_boundary boundary N/A N/A N/A N/A msg set_boundary boundary N/A N/A N/A msg preamble None N/A N/A N/A self _fp N/A msg preamble N/A N/A self _fp N/A -- boundary N/A msgtexts N/A N/A N/A N/A N/A self _fp write N/A N/A msgtexts pop 0 N/A body_part msgtexts N/A N/A N/A self _fp N/A 
-- boundary N/A N/A N/A N/A self _fp write body_part N/A N/A N/A N/A self _fp write N/A N/A 
-- boundary -- N/A N/A N/A msg epilogue None N/A N/A N/A self _fp N/A N/A N/A N/A self _fp write N/A msg epilogue N/A _handle_message_delivery_status N/A N/A self msg N/A N/A N/A blocks N/A N/A part N/A N/A msg get_payload N/A N/A s N/A StringIO N/A g N/A N/A self clone s N/A N/A N/A g flatten part unixfrom False N/A text N/A N/A s getvalue N/A lines N/A N/A text split N/A N/A lines N/A N/A lines N/A -1 N/A N/A N/A N/A blocks append N/A N/A NL join N/A lines N/A -1 N/A N/A N/A N/A blocks append text N/A N/A N/A N/A self _fp write N/A N/A NL join blocks N/A _handle_message N/A N/A self msg N/A N/A N/A s N/A StringIO N/A g N/A N/A self clone s N/A N/A N/A g flatten N/A N/A msg get_payload 0 unixfrom False N/A N/A N/A N/A self _fp write N/A N/A s getvalue N/A N/A N/A _FMT [Non-text (%(type)s) part of message omitted, filename %(filename)s] DecodedGenerator N/A Generator N/A N/A Generator a text representation of a message.

    Like the Generator base class, except that non-text parts are substituted
    with a format string representing the part.
     __init__ N/A N/A self outfp mangle_from_ maxheaderlen fmt N/A True 78 None N/A N/A Like Generator.__init__() except that an additional optional
        argument is allowed.

        Walks through all subparts of a message.  If the subpart is of main
        type `text', then it prints the decoded payload of the subpart.

        Otherwise, fmt is a format string that is used instead of the message
        payload.  fmt is expanded with the following keywords (in
        %(keyword)s format):

        type       : Full MIME type of the non-text part
        maintype   : Main MIME type of the non-text part
        subtype    : Sub-MIME type of the non-text part
        filename   : Filename of the non-text part
        description: Description associated with the non-text part
        encoding   : Content transfer encoding of the non-text part

        The default value for fmt is None, meaning

        [Non-text (%(type)s) part of message omitted, filename %(filename)s]
         N/A N/A N/A Generator __init__ self outfp mangle_from_ maxheaderlen N/A N/A fmt None N/A N/A N/A self _fmt _FMT N/A N/A N/A self _fmt fmt N/A _dispatch N/A N/A self msg N/A N/A N/A part N/A N/A msg walk N/A N/A maintype N/A N/A part get_content_maintype N/A N/A maintype text N/A N/A self N/A N/A part get_payload decode True N/A N/A N/A maintype multipart N/A N/A N/A N/A self N/A N/A self _fmt N/A type maintype subtype filename description encoding N/A N/A part get_content_type N/A N/A part get_content_maintype N/A N/A part get_content_subtype N/A N/A part get_filename [no filename] N/A N/A part get Content-Description [no description] N/A N/A part get Content-Transfer-Encoding [no encoding] N/A N/A N/A _width N/A len N/A repr N/A N/A sys maxint 1 N/A _fmt N/A %%0%dd _width _make_boundary N/A N/A text N/A None N/A N/A token N/A N/A random randrange N/A sys maxint N/A boundary N/A N/A N/A = 15 N/A _fmt token == N/A N/A text None N/A N/A boundary N/A b boundary N/A counter 0 N/A True N/A N/A cre N/A N/A re compile N/A N/A ^-- N/A N/A re escape b (--)?$ N/A re MULTILINE N/A N/A N/A N/A cre search text N/A N/A N/A b N/A N/A boundary . N/A str counter N/A counter 1 N/A b N/A