R David Murray
875048bd4c
#665194 : support roundtripping RFC2822 date stamps in the email.utils module
2011-07-20 11:41:21 -04:00
R David Murray
749073af13
#1874 : detect invalid multipart CTE and report it as a defect.
2011-06-22 13:47:53 -04:00
R David Murray
e76ff4081a
merge #11584 : make Header and make_header handle binary unknown-8bit input
2011-06-18 13:02:42 -04:00
R David Murray
e5e366c856
#11584 : make Header and make_header handle binary unknown-8bit input
...
Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings. Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.
2011-06-18 12:57:28 -04:00
R David Murray
7df08379c6
merge #11584 : make decode_header handle Header objects correctly
...
This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug
incorrectly.
2011-06-18 12:32:27 -04:00
R David Murray
6bdb1769dc
#11584 : make decode_header handle Header objects correctly
...
This updates b21fdfa0019c, which fixed this bug incorrectly.
2011-06-18 12:30:55 -04:00
R David Murray
3edd22ac95
#11731 : simplify/enhance parser/generator API by introducing policy objects.
...
This new interface will also allow for future planned enhancements
in control over the parser/generator without requiring any additional
complexity in the parser/generator API.
Patch reviewed by Éric Araujo and Barry Warsaw.
2011-04-18 13:59:37 -04:00
R David Murray
f3299989a2
Merge: #11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:11:06 -04:00
R David Murray
01581ee0b7
#11492 : rewrite header folding algorithm. Less code, more passing tests.
2011-04-18 10:04:34 -04:00
R David Murray
a2860e8b51
Improve message.py test coverage to 100%.
...
coverage.py reports 99% on branch coverage, but that appears to be
a bug or limitation in coverage.py.
2011-04-16 09:20:30 -04:00
R David Murray
8437fe2708
Remove unused method from internal class.
2011-04-15 14:55:04 -04:00
R David Murray
b35c850a3f
#11684 : Complete parser bytes interface by adding BytesHeaderParser
...
Patch by Steffen Daode Nurpmeso.
2011-04-13 16:46:05 -04:00
Ezio Melotti
5e610def7d
Merge with 3.2.
2011-04-13 16:45:00 +03:00
Ezio Melotti
a3d0be456c
Merge with 3.1.
2011-04-13 16:44:18 +03:00
Ezio Melotti
ce073cdac7
Fix typo in docstring.
2011-04-13 16:43:21 +03:00
R David Murray
b30f1b4106
Merge: Add maxlinelen to docstring, delete obsolete wording
2011-04-12 15:02:07 -04:00
R David Murray
94f90dd4a1
Merge: Add maxlinelen to docstring, delete obsolete wording
2011-04-12 15:01:28 -04:00
R David Murray
308f14aeae
Add maxlinelen to docstring, delete obsolete wording
2011-04-12 15:00:44 -04:00
R David Murray
7ede59d77a
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 21:00:33 -04:00
R David Murray
80221ed0c0
Merge #11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 20:56:31 -04:00
R David Murray
e1292a25d8
#11492 : fix header truncation on folding when there are runs of split chars.
...
Not a complete fix for this issue.
2011-04-07 20:54:03 -04:00
R David Murray
b65df26830
Merge: Improve test coverage of _split_ascii method.
2011-04-07 20:40:01 -04:00
R David Murray
7da4db118e
Improve test coverage of _split_ascii method.
2011-04-07 20:37:17 -04:00
R David Murray
8debacb51c
#1690608 : make formataddr RFC2047 aware.
...
Patch by Torsten Becker.
2011-04-06 09:35:57 -04:00
R David Murray
a0b1c77a19
Merge #11605 : don't use set/get_payload in feedparser; they do conversions.
2011-04-06 08:16:13 -04:00
R David Murray
c5c1472895
#11605 : don't use set/get_payload in feedparser; they do conversions.
...
Really the whole API needs to be gone over to restore the
separation of concerns; but that's what email6 is about.
2011-04-06 08:13:02 -04:00
R David Murray
86cc82e36f
Remove the 'strict' argument to Parser, deprecated since 2.4.
2011-03-29 11:32:35 -04:00
R David Murray
961355a56a
Merge #11584 : Since __getitem__ returns headers, make decode_header handle them.
2011-03-25 15:31:52 -04:00
R David Murray
041015cc70
#11584 : Since __getitem__ returns headers, make decode_header handle them.
...
Why I consider this a bug rather than an API change: the API change was
to Message, which didn't used to return Headers unless you added them
yourself. Now it does (for 8bit binary header input), so decode_header
needs to be able to handle them.
2011-03-25 15:10:55 -04:00
R David Murray
73bd0448b9
Merge #11606 : improved body_encode algorithm, no longer produces overlong lines
2011-03-24 12:28:39 -04:00
R David Murray
c7d28be62f
Merge #11606 : improved body_encode algorithm, no longer produces overlong lines
2011-03-24 12:27:23 -04:00
R David Murray
b938c8c253
#11606 : improved body_encode algorithm, no longer produces overlong lines
...
Algorithm and initial patch by Michael Henry.
2011-03-24 12:19:26 -04:00
R David Murray
5839b9635c
Merge #11590 : fix quoprimime decode handling of empty strings and line endings.
2011-03-23 15:37:26 -04:00
R David Murray
523b41c4b3
Merge #11590 : fix quoprimime decode handling of empty strings and line endings.
2011-03-23 15:27:04 -04:00
R David Murray
cafd79d904
#11590 : fix quoprimime decode handling of empty strings and line endings.
2011-03-23 15:25:55 -04:00
R David Murray
3d9e973abd
Merge #11589 : add additional tests for the email quoprimime module.
2011-03-23 14:27:18 -04:00
R David Murray
ec1b5b88ee
#11589 : add additional tests for the email quoprimime module.
...
Patch by Michael Henry.
2011-03-23 14:19:05 -04:00
R David Murray
9aaba789b3
Correctly move email package tests to Lib/test.
2011-03-21 17:17:06 -04:00
R David Murray
a215023b78
#11243 : tests and fixes for handling of 'dirty data' in additional methods
2011-03-16 21:11:23 -04:00
R David Murray
4e4326829f
Merge #11401 fix from 3.1.
2011-03-16 18:27:34 -04:00
R David Murray
de91276a5c
#11401 : handle headers with no value.
2011-03-16 18:26:23 -04:00
R David Murray
78099bb153
Merge #9298 fix.
2011-03-16 16:13:07 -04:00
R David Murray
6d94bd470e
#9298 : restore proper folding of base64 encoded bodies.
...
Patch by Yves Dorfsman.
2011-03-16 15:52:22 -04:00
Ezio Melotti
3b3499ba69
#11565 : Merge with 3.1.
2011-03-16 11:35:38 +02:00
Ezio Melotti
13925008dc
#11565 : Fix several typos. Patch by Piotr Kasprzyk.
2011-03-16 11:05:33 +02:00
R David Murray
4a0b60c527
Merge #11555 as_string doc fix from 3.1.
2011-03-15 14:02:53 -04:00
R David Murray
7dedcb4644
#11555 : update doc for 3.x change to as_string mangle_from default.
2011-03-15 14:01:18 -04:00
R David Murray
106f8e3ea4
Remove obsolete comment.
2011-03-15 12:48:41 -04:00
R David Murray
56a9d7e3da
#11554 : reactivate test_email_codecs, and make it pass.
...
The fix is to charset.py, which was not doing the encoding to the
correct output character set when doing a body_encode for either
the shift-jis or euc-jp charsets. There's also a fix for handling
a bytes input in encoders.py.
Patch by Michael Henry, comment changes by me.
2011-03-15 12:20:02 -04:00
Ezio Melotti
4969f709cc
#11515 : Merge with 3.1.
2011-03-15 05:59:46 +02:00