| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
since we'll be adding our own continuation whitespace later.
|
|
|
|
| |
from Jason Mastaler :)
|
|
|
|
| |
language without including any single quotes.
|
|
|
|
| |
both the charset and language without including any single quotes.
|
|
|
|
|
|
|
|
| |
Quoting the path doesn't work on Win2K (cmd.exe) regardless, this is just
a hack to let the test pass again on Win2K (so long as Python isn't
installed in a path that does contain an embedded space). On Win2K it
looks like we'd also have to add a second pair of double quotes, around
the entire command line.
|
| |
|
| |
|
|
|
|
| |
Evil.
|
|
|
|
|
|
| |
clear from recent discussions on c.l.py that people are a bit confused about
the differences between the old bsddb, the new bssdb, the bsddb3/PyBSDDB
package and changes to file formats. Tried to clarify the issues.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_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.
|
| |
|
| |
|
| |
|
|
|
|
| |
a fatal tab/space inconsistency under -tt.
|
|
|
|
| |
easier to debug GUSI errors in a static build).
|
| |
|
|
|
|
|
| |
classes defined by Python code using a class statement) is now
exported from object.h as PyHeapTypeObject. (SF patch #696193.)
|
| |
|
|
|
|
| |
and I don't have time to fix it. I'll file a bug report.
|
|
|
|
| |
elsewhere. Retracting.
|
|
|
|
|
|
|
| |
- the test was sloppy about filenames: "0-REGTYPE-TEXT" was used where
the archive held "/0-REGTYPE-TEXT".
- tarfile extracts all files in binary mode, but the test expected to be able to
read and compare text files in text mode. Use universal text mode.
|
| |
|
|
|
|
|
|
|
| |
would have required refraining from using string methods -- too
painful.)
Changed the -s option so that multiple -s options are cumulative.
|
| |
|
|
|
|
| |
(contributed by Michael Stone.)
|
| |
|
|
|
|
|
|
|
| |
resources before reverting to manually reading the resources.
Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.
|
| |
|
|
|
|
| |
to the Python style, etc.
|
|
|
|
|
|
| |
in stead of manually getting the AETE/AEUT resource. Donated by Donovan
Preston. This is his original code (but with the filename changed) checked
in for reference only.
|
|
|
|
| |
Remove prototype and doc. Backport candidate.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Received headers (first on semis then on whitespace), given by Jason
Mastaler.
|
|
|
|
|
|
| |
Kevin Jacobs found that the code simplification did not
exactly match the semantics of the original. Regression
test cases were requested.
|
|
|
|
|
| |
standard deviation. Also add an XXX comment wondering if we should
refrain from using itertools.repeat().
|
|
|
|
| |
SF # 640110.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
| |
Update tests for email 2.5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_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.
|
|
|
|
| |
Rename a constant.
|
|
|
|
| |
Remove a senseless comment.
|