diff options
Diffstat (limited to 'Doc/library/email.charset.rst')
-rw-r--r-- | Doc/library/email.charset.rst | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Doc/library/email.charset.rst b/Doc/library/email.charset.rst index d4b06fb..1249b71 100644 --- a/Doc/library/email.charset.rst +++ b/Doc/library/email.charset.rst @@ -142,12 +142,6 @@ Import this class from the :mod:`email.charset` module. it is *input_charset*. - .. method:: encoded_header_len() - - Return the length of the encoded header string, properly calculating for - quoted-printable or base64 encoding. - - .. method:: header_encode(string) Header-encode the string *string*. @@ -156,6 +150,16 @@ Import this class from the :mod:`email.charset` module. *header_encoding* attribute. + .. method:: header_encode_lines(string, maxlengths) + + Header-encode a *string* by converting it first to bytes. + + This is similar to :meth:`header_encode` except that the string is fit + into maximum line lengths as given by the argument *maxlengths*, which + must be an iterator: each element returned from this iterator will provide + the next maximum line length. + + .. method:: body_encode(string) Body-encode the string *string*. |