<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/email, branch v2.5c2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/email?h=v2.5c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/email?h=v2.5c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2006-07-26T05:54:46Z</updated>
<entry>
<title>Forward port some fixes that were in email 2.5 but for some reason didn't make</title>
<updated>2006-07-26T05:54:46Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-07-26T05:54:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d92ae78bdbab63a68e88fb561a2bc9555d8cef6c'/>
<id>urn:sha1:d92ae78bdbab63a68e88fb561a2bc9555d8cef6c</id>
<content type='text'>
it into email 4.0.  Specifically, in Message.get_content_charset(), handle RFC
2231 headers that contain an encoding not known to Python, or a character in
the data that isn't in the charset encoding.  Also forward port the
appropriate unit tests.
</content>
</entry>
<entry>
<title>More RFC 2231 improvements for the email 4.0 package.  As Mark Sapiro rightly</title>
<updated>2006-07-21T14:51:07Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-07-21T14:51:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b110bad2d9c1c4fcfafdc75db2213cbc0b753342'/>
<id>urn:sha1:b110bad2d9c1c4fcfafdc75db2213cbc0b753342</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>decode_rfc2231(): Be more robust against buggy RFC 2231 encodings.</title>
<updated>2006-07-17T23:07:51Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-07-17T23:07:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18d2f39af71608162b28fe1f41aa3e76efd83410'/>
<id>urn:sha1:18d2f39af71608162b28fe1f41aa3e76efd83410</id>
<content type='text'>
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.

Test cases added.

Original fewer-than-3-parts fix by Tokio Kikuchi.

Resolves SF bug # 1218081.  I will back port the fix and tests to Python 2.4
(email 3.0) and Python 2.3 (email 2.5).

Also, bump the version number to email 4.0.1, removing the 'alpha' moniker.
</content>
</entry>
<entry>
<title>Port forward from 2.4 branch:</title>
<updated>2006-05-01T03:03:02Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-05-01T03:03:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbcc8d9b24496ca55dd349cd2eb5273cf6723343'/>
<id>urn:sha1:dbcc8d9b24496ca55dd349cd2eb5273cf6723343</id>
<content type='text'>
Patch #1464708 from William McVey: fixed handling of nested comments in mail
addresses.  E.g.

"Foo ((Foo Bar)) &lt;foo@example.com&gt;"

Fixes for both rfc822.py and email package.  This patch needs to be back
ported to Python 2.3 for email 2.5.
</content>
</entry>
<entry>
<title>The email module's parsedate_tz function now sets the daylight savings</title>
<updated>2006-04-03T08:05:07Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2006-04-03T08:05:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=93f5b93422ddfc46142186078ee0eedfcace8964'/>
<id>urn:sha1:93f5b93422ddfc46142186078ee0eedfcace8964</id>
<content type='text'>
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi
</content>
</entry>
<entry>
<title>whitespace n11n</title>
<updated>2006-03-20T07:10:01Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2006-03-20T07:10:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46fa48ab04b68e34884264db5be1082747da379a'/>
<id>urn:sha1:46fa48ab04b68e34884264db5be1082747da379a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge email package 4.0 from the sandbox, including documentation, test cases,</title>
<updated>2006-03-18T15:41:53Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-03-18T15:41:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=40ef0067ad5af2458c54cc0316831ddb701ea3fd'/>
<id>urn:sha1:40ef0067ad5af2458c54cc0316831ddb701ea3fd</id>
<content type='text'>
and NEWS updates.
</content>
</entry>
<entry>
<title>Actually this file should have svn:eol-style CRLF since it's specifically</title>
<updated>2006-03-04T04:55:02Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-03-04T04:55:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ad9afcf213f5a69d1a43616cbd445126e8a7d6cb'/>
<id>urn:sha1:ad9afcf213f5a69d1a43616cbd445126e8a7d6cb</id>
<content type='text'>
testing line ending compatibility.
</content>
</entry>
<entry>
<title>Set eol-style to native -- doesn't appear to be any reason</title>
<updated>2006-03-04T02:57:23Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2006-03-04T02:57:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c32886dad87281f632bae168bfaac1c6d89d75e8'/>
<id>urn:sha1:c32886dad87281f632bae168bfaac1c6d89d75e8</id>
<content type='text'>
for it to claim it has mime-type application/octet-stream.
</content>
</entry>
<entry>
<title>Port relevant patches for SF 1409455 to the trunk for email 3.0/Python 2.5.</title>
<updated>2006-02-08T14:34:21Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2006-02-08T14:34:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e58df82919808939f21e9756af65c5afb5d8b2e5'/>
<id>urn:sha1:e58df82919808939f21e9756af65c5afb5d8b2e5</id>
<content type='text'>
Will port to Python 2.4.
</content>
</entry>
</feed>
