cpython/Lib/email
Barry Warsaw 15aefa94d0 Fixing some RFC 2231 related issues as reported in the Spambayes
project, and with assistance from Oleg Broytmann.  Specifically,

get_param(), get_params(): Document that these methods may return
parameter values that are either strings, or 3-tuples in the case of
RFC 2231 encoded parameters.  The application should be prepared to
deal with such return values.

get_boundary(): Be prepared to deal with RFC 2231 encoded boundary
parameters.  It makes little sense to have boundaries that are
anything but ascii, so if we get back a 3-tuple from get_param() we
will decode it into ascii and let any failures percolate up.

get_content_charset(): New method which treats the charset parameter
just like the boundary parameter in get_boundary().  Note that
"get_charset()" was already taken to return the default Charset
object.

get_charsets(): Rewrite to use get_content_charset().
2002-09-26 17:19:34 +00:00
..
test Open the test files in binary mode so the \r\n files won't cause 2002-09-18 22:17:57 +00:00
Charset.py Whitespace normalization. 2002-08-23 18:19:30 +00:00
Encoders.py Complete a merge of the mimelib project and the Python cvs codebases 2002-05-19 23:44:19 +00:00
Errors.py Slightly better docstring 2002-06-01 05:45:37 +00:00
Generator.py Import _isstring() from the compatibility layer. 2002-09-10 16:13:45 +00:00
Header.py _ascii_split(): Don't lstrip continuation lines. Closes SF bug #601392. 2002-09-10 15:57:29 +00:00
Iterators.py _structure(): Use .get_content_type() 2002-09-01 21:04:43 +00:00
MIMEAudio.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEBase.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEImage.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
MIMEMessage.py __init__(): Be sure to set the default type to message/rfc822. 2002-07-09 02:40:35 +00:00
MIMEMultipart.py __init__(): Don't attach the subparts if its an empty tuple. If the 2002-07-09 02:44:26 +00:00
MIMENonMultipart.py These two classes provide bases for more specific content type 2002-06-01 05:59:12 +00:00
MIMEText.py Use absolute import paths for intrapackage imports. 2002-06-02 19:05:08 +00:00
Message.py Fixing some RFC 2231 related issues as reported in the Spambayes 2002-09-26 17:19:34 +00:00
Parser.py _parsebody(): Instead of raising a BoundaryError when no start 2002-09-10 16:14:56 +00:00
Utils.py rfc822.unquote() doesn't properly de-backslash-ify in Python prior to 2002-09-11 02:22:48 +00:00
__init__.py __version__: Bump to 2.4 2002-09-25 22:07:50 +00:00
_compat21.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
_compat22.py _isstring(): Factor out "stringiness" test, e.g. for StringType or 2002-09-10 16:09:06 +00:00
base64MIME.py header_encode(), encode(): Use _floordiv() from the appropriate 2002-06-02 19:08:31 +00:00
quopriMIME.py _max_append(): When adding the string `s' to its own line, it should 2002-06-28 23:48:23 +00:00