Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of some hard coded tabs | Barry Warsaw | 2003-04-24 | 1 | -3/+3 |
| | |||||
* | as_string(): Added some text to the docstring to make it clear that | Barry Warsaw | 2003-04-18 | 1 | -0/+4 |
| | | | | | it's a convenience only and give hints on what to do for more flexibility. | ||||
* | Fix a comment | Barry Warsaw | 2003-04-02 | 1 | -1/+1 |
| | |||||
* | Bump to version 2.5.1 | Barry Warsaw | 2003-03-30 | 1 | -1/+1 |
| | |||||
* | test_whitespace_eater_unicode_2(): Test case for SF bug #710498. | Barry Warsaw | 2003-03-30 | 1 | -0/+9 |
| | |||||
* | __unicode__(): Fix the logic for calculating whether to add a | Barry Warsaw | 2003-03-30 | 1 | -3/+3 |
| | | | | | separating space or not between encoded chunks. Closes SF bug #710498. | ||||
* | Temporary bump of the version number. | Barry Warsaw | 2003-03-26 | 1 | -1/+1 |
| | |||||
* | typed_subpart_iterator(): Fix these to use non-deprecated APIs, | Barry Warsaw | 2003-03-26 | 1 | -3/+10 |
| | | | | | | i.e. get_content_maintype() and get_content_subtype(). Also, add True, False for Python 2.2.x where x < 2 compatibility. | ||||
* | typed_subpart_iterator(): Fix these to use non-deprecated APIs, | Barry Warsaw | 2003-03-26 | 1 | -2/+2 |
| | | | | i.e. get_content_maintype() and get_content_subtype(). | ||||
* | Email version 2.5 -- I will now backport this to Python 2.2.3. | Barry Warsaw | 2003-03-21 | 1 | -1/+1 |
| | |||||
* | _encode_chunks(): Throw out empty chunks. | Barry Warsaw | 2003-03-17 | 1 | -0/+2 |
| | |||||
* | test_long_lines_with_different_header(): Another test from Jason. | Barry Warsaw | 2003-03-17 | 1 | -0/+16 |
| | |||||
* | test_getaddresses_nasty(): A test for mimelib SF bug # 697641. | Barry Warsaw | 2003-03-17 | 1 | -0/+10 |
| | |||||
* | getaddrlist(): Make sure this consumes all the data, and if there is | Barry Warsaw | 2003-03-17 | 1 | -2/+2 |
| | | | | | | | no address there (perhaps because of invalid characters, it appends ('', '') to the result set. Closes mimelib SF bug # 697641. | ||||
* | test_whitespace_eater_unicode(): Make this test Python 2.1 compatible. | Barry Warsaw | 2003-03-12 | 1 | -1/+4 |
| | |||||
* | Python 2.1 doesn't have True and False | Barry Warsaw | 2003-03-12 | 1 | -0/+3 |
| | |||||
* | Adjust tests for no newline appending to MIMEText.__init__()'s _text | Barry Warsaw | 2003-03-11 | 1 | -2/+0 |
| | | | | argument. | ||||
* | beta 1 | Barry Warsaw | 2003-03-11 | 1 | -1/+1 |
| | |||||
* | Adjust tests for no newline appending to MIMEText.__init__()'s _text | Barry Warsaw | 2003-03-11 | 1 | -11/+7 |
| | | | | argument. | ||||
* | __init__(): Don't add a newline to _text if it doesn't already end in | Barry Warsaw | 2003-03-11 | 1 | -4/+1 |
| | | | | one. Possibly controversial. | ||||
* | body_line_iterator(): Accept optional decode argument, pass through to | Barry Warsaw | 2003-03-11 | 2 | -6/+12 |
| | | | | Message.get_payload(). | ||||
* | get_payload(): Teach this about various uunencoded | Barry Warsaw | 2003-03-11 | 1 | -10/+21 |
| | | | | Content-Transfer-Encodings | ||||
* | test_get_decoded_uu_payload(): A new test for | Barry Warsaw | 2003-03-11 | 1 | -0/+11 |
| | | | | Content-Transfer-Encoding: x-uuencode | ||||
* | specialsre, escapesre: In SF bug #663369, Matthew Woodcraft points out | Barry Warsaw | 2003-03-10 | 1 | -2/+2 |
| | | | | that backslashes must be escaped in character sets. | ||||
* | test_escape_backslashes(): A test for SF bug #663369 by Matthew Woodcraft. | Barry Warsaw | 2003-03-10 | 1 | -0/+8 |
| | |||||
* | _bdecode(): Remove redundant check. | Barry Warsaw | 2003-03-10 | 1 | -2/+0 |
| | |||||
* | Fix base class | Barry Warsaw | 2003-03-10 | 1 | -1/+1 |
| | |||||
* | Use ndiffAssertEqual in a couple of places for better error reporting. | Barry Warsaw | 2003-03-10 | 1 | -3/+6 |
| | |||||
* | get_payload(): If we get a low-level binascii.Error when base64 | Barry Warsaw | 2003-03-10 | 1 | -5/+12 |
| | | | | decoding the payload, just return it as-is. | ||||
* | test_broken_base64_payload(): Test for crash in low-level binascii | Barry Warsaw | 2003-03-10 | 1 | -0/+8 |
| | | | | module when decoding a message with broken base64. | ||||
* | _split_ascii() [method and function]: Don't join the lines just to | Barry Warsaw | 2003-03-10 | 1 | -10/+11 |
| | | | | | | split them again. Simply return them as chunk lists. _encode_chunks(): Don't add more folding whitespace than necessary. | ||||
* | test_another_long_multiline_header(): Yet another formatting test. | Barry Warsaw | 2003-03-10 | 1 | -0/+12 |
| | |||||
* | _split_ascii(): lstrip the individual lines in the ascii split lines, | Barry Warsaw | 2003-03-07 | 1 | -0/+3 |
| | | | | since we'll be adding our own continuation whitespace later. | ||||
* | test_long_unbreakable_lines_with_continuation(): Another funky example | Barry Warsaw | 2003-03-07 | 1 | -0/+16 |
| | | | | from Jason Mastaler :) | ||||
* | decode_rfc2231(): RFC 2231 allows leaving out both the charset and | Barry Warsaw | 2003-03-07 | 1 | -5/+7 |
| | | | | language without including any single quotes. | ||||
* | test_rfc2231_no_language_or_charset(): RFC 2231 allows leaving out | Barry Warsaw | 2003-03-07 | 1 | -0/+11 |
| | | | | both the charset and language without including any single quotes. | ||||
* | whitespace normalization | Barry Warsaw | 2003-03-07 | 1 | -6/+6 |
| | |||||
* | _write_headers(), _split_header(): All of the smarts for splitting | Barry Warsaw | 2003-03-07 | 1 | -35/+20 |
| | | | | | | long header lines is now (properly) in the Header class. So we no longer need _split_header() and we'll just defer to Header.encode() when we have a plain string. | ||||
* | More internal refinements of the ascii splitting algorithm. | Barry Warsaw | 2003-03-07 | 1 | -7/+10 |
| | | | | | | | | | | | | | | _encode_chunks(): Pass maxlinelen in instead of always using self._maxlinelen, so we can adjust for shorter initial lines. Pass this value through to _max_append(). encode(): Weave maxlinelen through to the _encode_chunks() call. _split_ascii(): When recursively splitting a line on spaces (i.e. lower level syntactic split), don't append the whole returned string. Instead, split it on linejoiners and extend the lines up to the last line (for proper packing). Calculate the linelen based on the last element in the this list. | ||||
* | test_string_headerinst_eq(): Another Jason test :) | Barry Warsaw | 2003-03-07 | 1 | -0/+14 |
| | |||||
* | Repaired a misleading comment Barry inherited from me. | Tim Peters | 2003-03-06 | 1 | -1/+1 |
| | |||||
* | _split_ascii(): In the clause where curlen + partlen > maxlen, if the | Barry Warsaw | 2003-03-06 | 1 | -1/+8 |
| | | | | | | part itself is longer than maxlen, and we aren't already splitting on whitespace, then we recursively split the part on whitespace and append that to the this list. | ||||
* | test_long_received_header(): Another test case for folding long | Barry Warsaw | 2003-03-06 | 1 | -0/+15 |
| | | | | | Received headers (first on semis then on whitespace), given by Jason Mastaler. | ||||
* | test_whitespace_eater_unicode(): Test of the last outstanding bug in | Barry Warsaw | 2003-03-06 | 1 | -0/+8 |
| | | | | SF # 640110. | ||||
* | __unicode__(): When converting to a unicode string, we need to | Barry Warsaw | 2003-03-06 | 1 | -3/+20 |
| | | | | | | preserve spaces in the encoded/unencoded word boundaries. RFC 2047 is ambiguous here, but most people expect the space to be preserved. Really closes SF bug # 640110. | ||||
* | test_rfc2047_multiline(): Test case for SF bug #640110. | Barry Warsaw | 2003-03-06 | 1 | -0/+14 |
| | |||||
* | decode_header(): Typo when appending an unencoded chunk to the | Barry Warsaw | 2003-03-06 | 1 | -1/+1 |
| | | | | | | previous unencoded chunk (e.g. when they appear on separate lines). Closes the 2nd bug in SF #640110 (the first one's already been fixed). | ||||
* | Merge of the folding-reimpl-branch. Specific changes, | Barry Warsaw | 2003-03-06 | 2 | -76/+165 |
| | | | | Update tests for email 2.5. | ||||
* | Merge of the folding-reimpl-branch. Specific changes, | Barry Warsaw | 2003-03-06 | 1 | -100/+154 |
| | | | | | | | | | | | | | | | | | | | | | | | _split(): New implementation of ASCII line splitting which should do a better job and not be subject to the various weird artifacts (bugs) reported. This should also do a better job of higher-level syntactic splits by trying first to split on semis, then commas, then whitespace. Use a Timbot-ly binary search for optimal non-ASCII split points for better packing of header lines. This also lets us remove one recursion call. Don't pass in firstline, but instead pass in the actual line length we're shooting for. Also pass in the list of split characters. encode(): Pass in the list of split characters so applications can have some control over what "higher level syntactic breaks" are. Also, decode_header(): Transform binascii.Errors which can occur when decoding a base64 RFC 2047 header with bogus data, into an email.Errors.HeaderParseError. Closes SF bug #696712. | ||||
* | Merge of the folding-reimpl-branch. Specific changes, | Barry Warsaw | 2003-03-06 | 1 | -2/+2 |
| | | | | Rename a constant. |