parameters: (self, unixfrom=False)
return_statement: return fp.getvalue()
docstring: Return the entire formatted message as a string.
          Optional `unixfrom' when True, means include the Unix From_ envelope
          header.
  
          This is a convenience method and may not generate the message exactly
          as you intend because by default it mangles lines that begin with
          "From ".  For more flexibility, use the flatten() method of a
          Generator instance.
docstring_summary: Return the entire formatted message as a string.
          Optional `unixfrom' when True, means include the Unix From_ envelope
          header.
docstring_tokens: Return the entire formatted message as a string . Optional unixfrom when True means include the Unix From_ envelope header .
function: def as_string(self, unixfrom=False):
          """Return the entire formatted message as a string.
          Optional `unixfrom' when True, means include the Unix From_ envelope
          header.
  
          This is a convenience method and may not generate the message exactly
          as you intend because by default it mangles lines that begin with
          "From ".  For more flexibility, use the flatten() method of a
          Generator instance.
          """
          from email.generator import Generator
          fp = StringIO()
          g = Generator(fp)
          g.flatten(self, unixfrom=unixfrom)
          return fp.getvalue()
function_tokens: def as_string ( self , unixfrom = False ) : from email . generator import Generator fp = StringIO ( ) g = Generator ( fp ) g . flatten ( self , unixfrom = unixfrom ) return fp . getvalue ( )