Comments (4)
This is not a minor feature, because RFCs are never simple. I haven't read the RFC in detail. The new email API (is supposed to) fully support RFC 6532 (see policy.SMTPUTF8), and can interoperate with smtplib to correctly send and receive internationalized email messages (at least in theory). Any new abilities/requirements in RFC 6530 that are not met by the existing code should be addressed in the new API. The legacy API only supports the older RFCs and so should not be modified.
from cpython.
The formataddr is useful even with the new email API to format correctly the name and the address when you have only the name and the full address.
from cpython.
Indeed email.headerregistry.Address
could be used but it does not support neither non-ASCII local part if used with addr_spec
argument.
So I think it should also be extended.
from cpython.
Right, that's where the extension should be done. I'd have to read the RFC to decide if a new policy flag is needed, but my guess from a very cursory skim is that it wouldn't be. I'm guessing allowing it if policy.utf8 is True would be enough. But like I said, I haven't actually read the RFC (yet).
from cpython.
Related Issues (20)
- Stop manually interning strings in pathlib HOT 6
- `IncompleteInputError` is undocumented HOT 10
- Deadlock while updating type cache (free-threading)
- cpython with msvc run into `Windows fatal exception: access violation` with `PyModule_AddFunctions` and `uint8_t = uint8_t * double` HOT 1
- `OSError` when creating a `multiprocessing.Queue` with `maxsize > 32767`
- Support `pythonπ` in Python 3.14 venv's HOT 6
- Performance regression in emulated arm64 on x86_64 host starting in 3.11.6
- Fixes missing dependencies in Makefile HOT 2
- Add a "clear" command to PYREPL
- Colorized output implemented in new REPL leaks into old REPL HOT 3
- PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible
- New repl closes CLI session on SyntaxError inside of the match statement HOT 1
- Invalid Assert in PyState_FindModule() HOT 1
- Remove AST nodes deprecated since Python 3.8, with warnings since Python 3.12
- Python's audithook isn't called with Python 3.12 but within Jupyter Notebooks HOT 3
- Some environment variables are missing from `--help-env`
- Adjust deprecation warning re: testing truth value of `xml.etree.ElementTree.Element` HOT 6
- Add advanced debugging examples to pdb documentation HOT 4
- Cannot define global variables in .pdbrc HOT 6
- The `dataclasses` unit tests should record behavior of shadowed init vars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpython.