Commit 482c5f7e authored by Barry Warsaw's avatar Barry Warsaw

as_string(): Added some text to the docstring to make it clear that

it's a convenience only and give hints on what to do for more
flexibility.
parent b05df579
...@@ -102,6 +102,10 @@ class Message: ...@@ -102,6 +102,10 @@ class Message:
"""Return the entire formatted message as a string. """Return the entire formatted message as a string.
Optional `unixfrom' when True, means include the Unix From_ envelope Optional `unixfrom' when True, means include the Unix From_ envelope
header. header.
This is a convenience method and may not generate the message exactly
as you intend. For more flexibility, use the flatten() method of a
Generator instance.
""" """
from email.Generator import Generator from email.Generator import Generator
fp = StringIO() fp = StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment