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: 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.
docstr_tok: ["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","."]
code: def flatten(self, msg, unixfrom=False):
      """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.
      """
      if unixfrom:
          ufrom = msg.get_unixfrom()
          if not ufrom:
              ufrom = "From nobody " + time.ctime(time.time())
          print >> self._fp, ufrom
      self._write(msg)
  
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 3 for calling the Generator obj's underlying member method code with example usage: obj.flatten(msg, unixfrom) without return types