PyDocs

Nav

Internet Data Handling

Generator

  • Generator(outfp, mangle_from_=None, maxheaderlen=None, *, policy=None)
Generates output from a Message object tree.

This basic generator writes the message to the given file object as plain
text.
Changed in 3.3, 3.6
  • 3.3: Added the policy keyword.
  • 3.6: The default behavior of the mangle_from_ and maxheaderlen parameters is to follow the policy.
Members of Generator

c

clone
Clone this generator with the exact same options.

f

flatten
Print the message object tree rooted at msg to the output file specified when the Generator instance was created.

w

write
Write s to the write method of the outfp passed to the Generator’s constructor.
0 Examples
No examples for email.generator/Generator.
See Also
No see-alsos for email.generator/Generator
0 Notes
No notes for Generator