diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-01-10 19:21:20 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-01-10 19:21:20 (GMT) |
commit | 27e48ef369aa370382d4ead0729b467ee4742c6d (patch) | |
tree | 0db41b8b2b89f18cd7d4c68f5f87c9dd4d341ce5 | |
parent | 673d7e91f7098478ca972267e153da7ff95cc291 (diff) | |
download | cpython-27e48ef369aa370382d4ead0729b467ee4742c6d.zip cpython-27e48ef369aa370382d4ead0729b467ee4742c6d.tar.gz cpython-27e48ef369aa370382d4ead0729b467ee4742c6d.tar.bz2 |
Merged revisions 77417 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r77417 | r.david.murray | 2010-01-10 14:18:27 -0500 (Sun, 10 Jan 2010) | 10 lines
Merged revisions 77412 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77412 | r.david.murray | 2010-01-10 12:41:28 -0500 (Sun, 10 Jan 2010) | 3 lines
Issue #7119: document that a program-generated Message object
tree may be mutated when serialized.
........
................
-rw-r--r-- | Doc/library/email.generator.rst | 5 | ||||
-rw-r--r-- | Doc/library/email.message.rst | 5 | ||||
-rw-r--r-- | Doc/library/email.mime.rst | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/Doc/library/email.generator.rst b/Doc/library/email.generator.rst index 2061f76..ba38f68 100644 --- a/Doc/library/email.generator.rst +++ b/Doc/library/email.generator.rst @@ -17,7 +17,10 @@ yourself. However the bundled generator knows how to generate most email in a standards-compliant way, should handle MIME and non-MIME email messages just fine, and is designed so that the transformation from flat text, to a message structure via the :class:`~email.parser.Parser` class, and back to flat text, -is idempotent (the input is identical to the output). +is idempotent (the input is identical to the output). On the other hand, using +the Generator on a :class:`~email.message.Message` constructed by program may +result in changes to the :class:`~email.message.Message` object as defaults are +filled in. Here are the public methods of the :class:`Generator` class, imported from the :mod:`email.generator` module: diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index 93dda69..7e939c9 100644 --- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -40,7 +40,10 @@ Here are the methods of the :class:`Message` class: Return the entire message flattened as a string. When optional *unixfrom* is ``True``, the envelope header is included in the returned string. - *unixfrom* defaults to ``False``. + *unixfrom* defaults to ``False``. Flattening the message may trigger + changes to the :class:`Message` if defaults need to be filled in to + complete the transformation to a string (for example, MIME boundaries may + be generated or modified). Note that this method is provided as a convenience and may not always format the message the way you want. For example, by default it mangles diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst index 703110a..9cd94d8 100644 --- a/Doc/library/email.mime.rst +++ b/Doc/library/email.mime.rst @@ -69,7 +69,8 @@ Here are the classes: also be added. Optional *boundary* is the multipart boundary string. When ``None`` (the - default), the boundary is calculated when needed. + default), the boundary is calculated when needed (for example, when the + message is serialized). *_subparts* is a sequence of initial subparts for the payload. It must be possible to convert this sequence to a list. You can always attach new subparts |