GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support formatting UTF-8 email addresses · Issue #118716 · python/cpython

Support formatting UTF-8 email addresses #118716

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Support formatting UTF-8 email addresses#118716
Copy link
Labels
topic-emailtype-featureA feature request or enhancementA feature request or enhancement

Description

@cedk
cedk
opened on May 7, 2024
Issue body actions

Feature or enhancement

Proposal:

RFC 6530 allows UTF-8 strings in email addresses.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-118716: Do not enforce ASCII to format address #118717

Activity

  1. cedk
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on May 7, 2024
  2. cedk
    added a commit that references this issue on May 7, 2024

    pythongh-118716: Do not enforce ASCII to format address

    3d2aa89
  3. bitdancer commented on May 7, 2024

    @bitdancer
    bitdancer
    on May 7, 2024
    Member
    More actions

    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.

  4. cedk commented on May 7, 2024

    @cedk
    cedk
    on May 7, 2024
    ContributorAuthor
    More actions

    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.

  5. cedk commented on May 8, 2024

    @cedk
    cedk
    on May 8, 2024
    ContributorAuthor
    More actions

    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.

  6. serhiy-storchaka
    added
    topic-email
    on May 8, 2024
  7. bitdancer commented on May 9, 2024

    @bitdancer
    bitdancer
    on May 9, 2024
    Member
    More actions

    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).

  8. cedk
    added a commit that references this issue on May 10, 2024

    pythongh-118716: Do not fail on non ASCII local part when parsing add…

    2bbb200
  9. bitdancer commented on Apr 18, 2026

    @bitdancer
    bitdancer
    on Apr 18, 2026
    Member
    More actions

    We are attempting to address this issue in a different way in #81074. For the reasons discussed there the approach taken for the PR attached to this issue no longer seems optimal, so I'm closing this as a duplicate.

  10. hugovk commented on Oct 29, 2026

    @hugovk
    hugovk
    on Oct 29, 2026
    Member
    More actions

    Duplicate of #81074, fixed in #122477.

  11. hugovk
    closed this as a duplicateof email.headerregistry.Address blocks Unicode local part addr_spec accepted elsewhere #81074 on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-emailtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.