| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string. Built on rfc822, this used to return None.
|
|
|
|
|
|
| |
twice! Fixed this by avoiding the import of test_email, which loads
the module a second time in that situation, and fiddled the __main__
section to resemble other test suites using unittest.
|
|
|
|
|
|
|
|
| |
More changes to the formatdate epoch test: the Mac epoch is in
localtime, so east of GMT it falls in 1903:-( Changed the test to
obtain the epoch in both local time and GMT, and do the right
thing in the comparisons. As a sanity measure also check that
day/month is Jan 1.
|
|
|
|
|
| |
test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the
sign corrected calculation of the zone offset.
|
|
|
|
|
|
|
|
|
|
|
| |
use the correct way to test for epoch, by looking at the year
component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim,
what is Windows epoch?).
Also, get rid of the strptime() test, it was way too problematic given
that strptime() is missing on many platforms and issues with locales.
Instead, simply test that formatdate() gets the numeric timezone
calculation correct for the altzone and timezone.
|
|
|
|
|
| |
which has a different epoch than *nix. Jack may need to twiddle the
details.
|
|
|
|
| |
field exists with an empty value.
|
| |
|
|
|
|
| |
strptime() -- I'm too lazy to code it otherwise.
|
| |
|
|
|
|
|
|
|
|
| |
the separating semi-colon shows up on a continuation line (legal, but
weird).
Bug reported and fixed by Matthew Cowles. Test case and sample email
included.
|
|
|
|
|
| |
TestMIMEMessage.test_epilogue(), TestIdempotent.test_preamble_epilogue():
Test cases for SF bug #472481.
|
| |
|
|
|
|
|
|
|
|
|
| |
test_no_semis_header_splitter(): This actually should still split.
test_no_split_long_header(): An example of an unsplittable line.
test_no_semis_header_splitter(): Test for SF bug # 471918, Generator
splitting long headers.
|
|
|
|
| |
has no Content-Type: header, it should be treated as text/plain.
|
| |
|
| |
|
|
|
|
| |
message with multiple CC: fields, used in the get_all() test.
|
|
|
|
| |
"listify an iterator".
|
|
|
|
| |
into tests/data/msg_*.txt files.
|
|
|
|
| |
normalization. Now uses \t in strings instead of hard tabs.
|
| |
|
|
|
|
| |
added some new tests of message/delivery-status content type messages.
|
|
|