class_docstr: Generates output from a Message object tree.
  
  This basic generator writes the message to the given file object as plain
  text.
class_docstr_tok: ["Generates","output","from","a","Message","object","tree",".","This","basic","generator","writes","the","message","to","the","given","file","object","as","plain","text","."]
docstr: 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.
docstr_tok: ["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","."]
code: def __init__(self, outfp, mangle_from_=True, maxheaderlen=78):
      """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.
      """
      self._fp = outfp
      self._mangle_from_ = mangle_from_
      self._maxheaderlen = maxheaderlen
  
imports: import re
  import sys
  import time
  import random
  import warnings
  from cStringIO import StringIO
  from email.header import Header
label_desc: Use image node_id 1 to create a new Generator object  with example: obj = Generator(outfp, mangle_from_, maxheaderlen)