diff options
author | R David Murray <rdmurray@bitdance.com> | 2015-05-17 18:24:33 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2015-05-17 18:24:33 (GMT) |
commit | fdb23c2fe5499d26701fa34873c1cdc347adcb80 (patch) | |
tree | 1f65d6f676b2feb7ee7c0e24068ca67160d91407 /Doc/whatsnew/3.5.rst | |
parent | 224ef3ec3b0758956789c4c98e6cc93704304419 (diff) | |
download | cpython-fdb23c2fe5499d26701fa34873c1cdc347adcb80.zip cpython-fdb23c2fe5499d26701fa34873c1cdc347adcb80.tar.gz cpython-fdb23c2fe5499d26701fa34873c1cdc347adcb80.tar.bz2 |
#20098: add mangle_from_ policy option.
This defaults to True in the compat32 policy for backward compatibility,
but to False for all new policies.
Patch by Milan Oberkirch, with a few tweaks.
Diffstat (limited to 'Doc/whatsnew/3.5.rst')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 51a3aa3..1f8d90f 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -351,6 +351,12 @@ doctest email ----- +* A new policy option :attr:`~email.policy.Policy.mangle_from_` controls + whether or not lines that start with "From " in email bodies are prefixed with + a '>' character by generators. The default is ``True`` for + :attr:`~email.policy.compat32` and ``False`` for all other policies. + (Contributed by Milan Oberkirch in :issue:`20098`.) + * A new method :meth:`~email.message.Message.get_content_disposition` provides easy access to a canonical value for the :mailheader:`Content-Disposition` header (``None`` if there is no such header). (Contributed by Abhilash Raj |