| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
When I made the checkin of the provisional email policy, I knew that
Address and Group needed to be made accessible from somewhere. The more
I looked at it, though, the more it became clear that since this is a
provisional API anyway, there's no good reason to hide headerregistry as
a private API. It was designed to ultimately be part of the public API,
and so it should be part of the provisional API.
This patch fully documents the headerregistry API, and deletes the
abbreviated version of those docs I had added to the provisional policy
docs.
|
| |
|
| |
|
| |
|
|
|
|
| |
closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
smtpd now handles EHLO and has infrastructure for extended smtp command mode.
The SIZE extension is also implemented. In order to support parameters on
MAIL FROM, the RFC 5322 parser from the email package is used to parse the
address "token".
Logging subclasses things and overrides __init__, so it was necessary to
update those __init__ functions in the logging tests to make the logging tests
pass.
The original suggestion and patch were by Alberto Trevino. Juhana Jauhiainen
added the --size argument and SIZE parameter support. Michele Orrù improved
the patch and added more tests. Dan Boswell conditionalized various bits of
code on whether or not we are in HELO or EHLO mode, as well as some other
improvements and tests. I finalized the patch and added the address parsing.
|
| |
| |
| |
| |
| |
| |
| | |
Although '<>' is invalid according to RFC 5322, SMTP uses it for various
things, and it sometimes ends up in email headers. This patch changes
get_angle_addr to recognize it and just register a Defect instead of raising a
parsing error.
|
| |
| |
| |
| | |
Network objects
|
| | |
|
| |
| |
| |
| | |
parameter to the factory functions by using the appropriate direct class references instead
|
|/
|
|
| |
python-dev.
|
|
|
|
|
|
|
|
| |
Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code. The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
|
|
|
|
|
| |
This is a danger of focusing on unit tests: sometimes you forget
to do the integration tests.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings. The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.
With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch primarily does two things: (1) it adds some internal-interface
methods to Policy that allow for Policy to control the parsing and folding of
headers in such a way that we can construct a backward compatibility policy
that is 100% compatible with the 3.2 API, while allowing a new policy to
implement the email6 API. (2) it adds that backward compatibility policy and
refactors the test suite so that the only differences between the 3.2
test_email.py file and the 3.3 test_email.py file is some small changes in
test framework and the addition of tests for bugs fixed that apply to the 3.2
API.
There are some additional teaks, such as moving just the code needed for the
compatibility policy into _policybase, so that the library code can import
only _policybase. That way the new code that will be added for email6
will only get imported when a non-compatibility policy is imported.
|
| |
|
|\
| |
| |
| | |
Patch by Victor Stinner.
|
| |
| |
| |
| | |
Patch by Victor Stinner.
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
J. Reedy's comments
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
|
| |
| |
| |
| | |
Furman)
|
| |
| |
| |
| | |
contextlib.nested API
|
| | |
|
|\ \
| |/
| |
| | |
Patch by Federico Reghenzani and Müte Invert
|
| |
| |
| |
| | |
Patch by Federico Reghenzani and Müte Invert
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
stricter.
|
| |
| |
| |
| | |
Patch by John Feuerstein.
|
|\ \
| |/
| |
| | |
http.client requests
|
| |
| |
| |
| | |
requests
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| | |
that it can be imported when threads are disabled.
(followup to issue #12098)
|
| |
| |
| |
| | |
Initial patch by Sergey Mezentsev.
|
| | |
|
| |
| |
| |
| |
| | |
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
|
| |
| |
| |
| |
| |
| | |
the default certificate store.
Initial patch by James Oakley.
|
| | |
|
| |
| |
| |
| | |
always compiled, even if OpenSSL is present at build time.
|
|\ \ |
|
| |\ \
| | |/ |
|