15 Commits

Author SHA1 Message Date
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
9cc51f11b7 Backporting email 2.5.2 fixes. 2003-05-08 04:00:05 +00:00
Barry Warsaw
caf2f5184b Backporting email 2.5 to Python 2.2 maint branch. 2003-03-21 21:09:32 +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
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
Barry Warsaw
bf7c52c233 More typo fixes. 2001-11-24 16:56:56 +00:00
Greg Ward
6253c2dd40 Docstring typo fix. 2001-11-24 15:49:53 +00:00
Barry Warsaw
2a9e3852ee walk(): Fix docstring; traversal is depth-first. Closes mimelib bug
#477864.
2001-11-05 19:19:55 +00:00
Barry Warsaw
2539cf5aad A fix for SF bug #472560, extra newlines returned by get_param() when
the separating semi-colon shows up on a continuation line (legal, but
weird).

Bug reported and fixed by Matthew Cowles.  Test case and sample email
included.
2001-10-25 22:43:46 +00:00
Barry Warsaw
9300a75c88 get_all(): We never returned failobj if we found no matching headers.
Fix that, and also make the docstring describe failobj.
2001-10-09 15:48:29 +00:00
Barry Warsaw
e968ead1dd Give me back my page breaks. 2001-10-04 17:05:11 +00:00
Tim Peters
527e64fd68 Whitespace normalization. 2001-10-04 05:36:56 +00:00
Barry Warsaw
beb5945c65 has_key(): Implement in terms of get().
get_type(): Use a compiled regular expression, which can be shared.

_get_params_preserve(): A helper method which extracts the header's
    parameter list preserving value quoting.  I'm not sure that this
    needs to be a public method.  It's necessary because we want
    get_param() and friends to return the unquoted parameter value,
    however we want the quote-preserved form for set_boundary().

get_params(), get_param(), set_boundary(): Implement in terms of
    _get_params_preserve().

walk(): Yield ourself first, then recurse over our subparts (if any).
2001-09-26 05:41:51 +00:00
Barry Warsaw
ba92580f01 The email package version 1.0, prototyped as mimelib
<http://sf.net/projects/mimelib>.  There /are/ API differences between
mimelib and email, but most of the implementations are shared (except
where cool Py2.2 stuff like generators are used).
2001-09-23 03:17:28 +00:00