summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for 2.3.7.v2.3.7Martin v. Löwis2008-03-115-6/+16
|
* Tag 2.3.7c1.Martin v. Löwis2008-03-021-0/+1
|
* Prepare for 2.3.7c1.v2.3.7c1Martin v. Löwis2008-03-025-12/+13
|
* Backport of r61180:Martin v. Löwis2008-03-0216-34/+309
| | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* Revert r52798, r52803, r52824, r54342, as they don't fixMartin v. Löwis2008-03-025-31/+8
| | | | security issues.
* SF patch #1556895; Typo in encoding name in email package.Barry Warsaw2007-03-132-6/+6
| | | | Patch supplied by Guillaume Rousse.
* [Jython patch #1599050] Avoid crash when os module lacks fstat()Andrew M. Kuchling2006-11-221-1/+3
|
* Jython compatibility fix: if uu.decode() opened its output file, be sure toAndrew M. Kuchling2006-11-201-0/+4
| | | | close it.
* Add extra SHA testsAndrew M. Kuchling2006-11-201-1/+18
|
* Tagging for release of Python 2.3.6Anthony Baxter2006-11-011-0/+1
|
* update patchlevel.h correctly, this timev2.3.6Anthony Baxter2006-11-011-1/+1
|
* updates for 2.3.6 finalAnthony Baxter2006-11-016-5/+15
|
* Tagging for release of Python 2.3.6c1Anthony Baxter2006-10-231-0/+1
|
* set svn:ignore. anal retentiveness, makes it easier to spot actual problemsv2.3.6c1Anthony Baxter2006-10-230-0/+0
|
* preparing for 2.3.6c1Anthony Baxter2006-10-238-9/+16
|
* patch for PSF-2006-001.Anthony Baxter2006-10-232-25/+47
|
* Fix the tests to work with Python 2.1, which email 2.5 must do.Barry Warsaw2006-07-261-4/+4
|
* Back port r50693 and r50754 from the trunk (and 2.4 branch):Barry Warsaw2006-07-254-37/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | decode_rfc2231(): Be more robust against buggy RFC 2231 encodings. Specifically, instead of raising a ValueError when there is a single tick in the parameter, simply return that the entire string unquoted, with None for both the charset and the language. Also, if there are more than 2 ticks in the parameter, interpret the first three parts as the standard RFC 2231 parts, then the rest of the parts as the encoded string. More RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightly points out there are really two types of continued headers defined in this RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded parameters with the form "name*0="), but we were were handling them both the same way and that isn't correct. This patch should be much more RFC compliant in that only encoded params are %-decoded and the charset/language information is only extract if there are any encoded params in the segments. If there are no encoded params then the RFC says that there will be no charset/language parts. Note however that this will change the return value for Message.get_param() in some cases. For example, whereas before if you had all unencoded param continuations you would have still gotten a 3-tuple back from this method (with charset and language == None), you will now get just a string. I don't believe this is a backward incompatible change though because the documentation for this method already indicates that either return value is possible and that you must do an isinstance(val, tuple) check to discriminate between the two. (Yeah that API kind of sucks but we can't change /that/ without breaking code.) Test cases, some documentation updates, and a NEWS item accompany this patch. Original fewer-than-3-parts fix by Tokio Kikuchi. Resolves SF bug # 1218081. Also, bump the package version number to 2.5.8 for release.
* Back port from 2.4 branch:Barry Warsaw2006-05-014-0/+18
| | | | | | | | | Patch #1464708 from William McVey: fixed handling of nested comments in mail addresses. E.g. "Foo ((Foo Bar)) <foo@example.com>" Fixes for both rfc822.py and email package.
* Resolve SF bug 1409403: email.Message should supress warning from uu.decode.Barry Warsaw2006-02-094-8/+48
| | | | | | | | However, the patch in that tracker item is elaborated such that the newly included unit test pass on Python 2.1 through 2.5. Note that Python 2.1's uu.decode() does not have a 'quiet' argument, so we have to be sneaky. Will port to email 3.0 (although without the backward compatible sneakiness).
* Patches to address SF bugs 1409538 (Japanese codecs in CODEC_MAP) and 1409455Barry Warsaw2006-02-085-27/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (.set_payload() gives bad .get_payload() results). Specific changes include: Simplfy the default CODEC_MAP in Charset.py to not include the Japanese and Korean codecs. The names of the codecs are different depending on whether you're using Python 2.4 and 2.5, which include the codecs by default, or earlier Python's which provide the codecs under different names as a third party library. Now, we attempt to discover which (if either) is available and populate the CODEC_MAP as appropriate. Message.set_charset(): When the message does not already have a Content-Transfer-Encoding header, instead of just adding the header, we also encode the body as defined by the assigned Charset. As before, if the body_encoding is callable, we just call that. If not, then we add a call to body_encode() before setting the header. This way, we guarantee that a message's text payload is always encoded properly. Remove the payload encoding code from Generator._handle_text(). With the above patch, this would cause the body to be doubly encoded. Doing this in the Message class is better than only doing it in the Generator. Added some new tests to ensure everything works correctly. Also changed the way the test_email_codecs.py tests get added (using the same lookup code that the CODEC_MAP adjustments use). This resolves both issues for email 2.5/Python 2.3. I will patch forward to email 3.0 for both Python 2.4 and 2.5.
* Resolves SF bug #1423972.Barry Warsaw2006-02-041-2/+4
|
* parsedate_tz(): Return a 1 in the tm_yday field so that the value isBarry Warsaw2006-02-032-5/+13
| | | | | | | | | | acceptable to Python 2.4's time.strftime(). This fix mirrors the behavior in email 3.0. That field is documented as being "not useable" so it might as well not be buggy too <wink>. Add a test for this behavior and update a few tests that were expecting a 0 in this field. After committing I will run the entire Python 2.3 test suite to ensure this doesn't break any Python tests.
* Updated docs for email.Message.get_filename()Barry Warsaw2006-01-171-4/+5
|
* SF bug #1403349 solution for email 2.5; some MUAs use the 'file' parameterBarry Warsaw2006-01-174-7/+53
| | | | | | | | | | name in the Content-Distribution header, so Message.get_filename() should fall back to using that. Will port both to email 3.0 and Python 2.5 trunk. Also, bump the email package version to 2.5.7 for eventual release. Of course, add a test case too. XXX Need to update the documentation.
* Begin 2.3.6 news section; record PCRE fixAndrew M. Kuchling2005-08-311-0/+11
|
* For reference, add tests for PCRE fix; the tests aren't run by default ↵Andrew M. Kuchling2005-08-311-0/+18
| | | | because I wanted to minimize upheaval to the 2.3 test suite
* Apply fix for potential heap overflow in PCRE code (CAN-2005-2491)Andrew M. Kuchling2005-08-311-9/+20
|
* [Bug #1194249] Fix duplicate assignment in example codeAndrew M. Kuchling2005-06-011-1/+1
|
* get_filename(), get_content_charset(): It's possible that the charset named inBarry Warsaw2005-04-293-9/+69
| | | | | | | | | | | | | an RFC 2231-style header could be bogus or unknown to Python. In that case, we return the the text part of the parameter undecoded. However, in get_content_charset(), if that is not ascii, then it is an illegal charset and so we return failobj. Test cases and a version bump are included. Committing this to the Python 2.3 branch because I need to generate an email 2.5.6 release that contains these patches. I will port these fixes to Python 2.4 and 2.5 for email 3.x.
* Started on MacPython additions for Tiger.Jack Jansen2005-04-225-0/+292
|
* correct ontosys url - closes 1167329Skip Montanaro2005-03-211-1/+1
|
* This commit was manufactured by cvs2svn to create tag 'r235'.v2.3.5cvs2svn2005-02-081-0/+1
|
* 2.3.5 finalAnthony Baxter2005-02-081-4/+4
|
* damnAnthony Baxter2005-02-081-2/+2
|
* 2.3.5 finalAnthony Baxter2005-02-085-3/+10
|
* 2.3.5 finalAnthony Baxter2005-02-081-1/+1
|
* set release date in the docsFred Drake2005-02-081-1/+1
|
* add 2.3.5 to the history and licensing infoFred Drake2005-02-081-0/+1
|
* bump version numberFred Drake2005-02-081-2/+2
|
* news update for 2.3.5 finalAnthony Baxter2005-02-081-1/+4
|
* sligtly strengthen unit tests for copy.pyAlex Martelli2005-02-071-1/+27
|
* tiny backport from 2.4, fix a leak in _testcapiAlex Martelli2005-02-071-0/+1
|
* fix bug 1114776Alex Martelli2005-02-062-1/+19
|
* fix XMLFilterBase.resolveEntity() so the caller gets the resultFred Drake2005-02-031-1/+1
| | | | (PyXML bug #1112052)
* Security fix PSF-2005-001 for SimpleXMLRPCServer.py.Guido van Rossum2005-02-033-7/+55
|
* Fix typo in verbose output for RLock when the initial lock acquisition occurs.Brett Cannon2005-01-271-1/+1
| | | | Closes bug #1110998.
* Partially revert #1074011; don't try to fflush stdin.Martin v. Löwis2005-01-272-1/+19
|
* This commit was manufactured by cvs2svn to create tag 'r235c1'.v2.3.5c1cvs2svn2005-01-261-0/+1
|
* added 2.3.5Anthony Baxter2005-01-261-0/+1
|