50 Commits

Author SHA1 Message Date
Barry Warsaw
1b5f2142f5 test_get_param_with_semis_in_quotes(): Test case for SF bug #794466.
Backport candidate.
2003-09-03 04:14:29 +00:00
Barry Warsaw
f29286e610 A fix for parsing parameters when there are semicolons inside the
quotes.  Fixes SF bug #794466, with the essential patch provided by
Stuart D. Gathman.  Specifically,

_parseparam(), _get_params_preserve(): Use the parsing function that
takes quotes into account, as given (essentially) in the bug report's
test program.

Backport candidate.
2003-09-03 04:14:01 +00:00
Barry Warsaw
27dd1d476e Backporting email 2.5.4 fixes from the trunk. 2003-08-19 04:56:47 +00:00
Barry Warsaw
641e266012 Backport from 2.3 trunk:
_make_boundary(): Fix for SF bug #745478, broken boundary calculation
    in some locales.  This code simplifies the boundary algorithm to use
    randint() which is what we wanted anyway.

    Bump package version to 2.5.3.
2003-05-29 20:09:31 +00:00
Barry Warsaw
9cc51f11b7 Backporting email 2.5.2 fixes. 2003-05-08 04:00:05 +00:00
Barry Warsaw
d90042536d Backporting:
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
    i.e. get_content_maintype() and get_content_subtype().
2003-04-04 02:48:18 +00:00
Barry Warsaw
27a93d70af Backporting email 2.5.1 patches. 2003-04-04 02:47:07 +00:00
Barry Warsaw
4a1d0f5638 Backporting:
revision 1.27
    date: 2003/03/30 20:46:47;  author: bwarsaw;  state: Exp;  lines: +3 -3
    __unicode__(): Fix the logic for calculating whether to add a
    separating space or not between encoded chunks.  Closes SF bug
    #710498.
2003-04-04 02:46:38 +00:00
Barry Warsaw
caf2f5184b Backporting email 2.5 to Python 2.2 maint branch. 2003-03-21 21:09:32 +00:00
cvs2svn
1a5727fb50 This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2003-03-17 18:35:42 +00:00
Jack Jansen
fe6c9c637b Stop-gap to forestall test_email failing in MacPython: disable the line-ending test. 2002-10-29 22:01:06 +00:00
Barry Warsaw
31eac4e4b3 Backport bugfix microrelease of email 2.4.3 from cvs trunk. 2002-10-14 17:26:03 +00:00
Barry Warsaw
bf503905a7 Backport email 2.4.2 changes from Python 2.3. 2002-10-10 19:10:45 +00:00
Barry Warsaw
9a5e668704 Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
with the standalone mimelib package.
2002-10-07 17:18:52 +00:00
Barry Warsaw
2972bdebcd openfile(): Go back to opening the files in text mode. This undoes
the change in revision 1.11 (test_email.py) in response to SF bug
#609988.  We now think that was the wrong fix and that WinZip was the
real culprit there.

This and the Parser.py patch will be forward ported into Python 2.3
and email 2.5.
2002-10-07 17:05:28 +00:00
Barry Warsaw
d5613bacbd _parsebody(): Use get_content_type() instead of the deprecated
get_type().  Also, one of the regular expressions is constant so might
as well make it a module global.  And, when splitting up digests,
handle lineseps that are longer than 1 character in length
(e.g. \r\n).
2002-10-07 17:02:40 +00:00
Barry Warsaw
850952b69a regrtest expects TestSkipped to come from test_support not
test.test_support
2002-10-04 18:00:13 +00:00
Barry Warsaw
18ff795468 Backporting of email 2.4 from Python 2.3. Many newly added modules,
some updated modules, updated documentation, and updated tests.  Note
that Lib/test/regrtest.py added test_email_codecs to the expected
skips for all platforms.  Also note that test_email_codecs.py differs
slightly from its Python 2.3 counterpart due to the difference in
package location for TestSkipped.
2002-10-04 17:24:24 +00:00
cvs2svn
5b70f66bf6 This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2002-10-04 17:24:24 +00:00
cvs2svn
bd40bbe7ed This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2002-09-22 09:03:03 +00:00
cvs2svn
3218fa4df6 This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2002-08-15 22:18:11 +00:00
Barry Warsaw
5516c7b319 _handle_multipart(): Fixes for SF bug #531966. Specifically two
situations are handled now: a multipart/* containing no payload
(i.e. never set), and a multipart/* containing a scalar payload
(i.e. Message.add_payload() having been called exactly once, not
passing in a sequence object).

_make_boundary(): Fixed bogus cut-n-paste error (self as first arg).

I will merge these changes into the standalone email package and
Python 2.3 separately.
2002-03-22 16:21:56 +00:00
Michael W. Hudson
7017724abf It's merge time!
Backport bwarsaw's checkin of revision 1.6:

_parsebody(): When adding subparts to a multipart container, make sure
that the first subpart added makes the payload a list object.
Otherwise, a multipart/* with only one subpart will not have the
proper structure.
2002-01-28 15:27:20 +00:00
Barry Warsaw
c44d2c52c9 decode(), encode(): Accepting the minor optimizations from SF patch
#486375, but not the rest of it, since that changes the documented
semantics of encode().
2001-12-03 19:26:40 +00:00
Barry Warsaw
bf7c52c233 More typo fixes. 2001-11-24 16:56:56 +00:00