Skip to content

HeaderParseError on email address ending with '.' #101034

Description

@madduck

Bug report

from email.headerregistry import Address
a = Address("Jane Doe", addr_spec="jane_doe@example.org.")
[…]
HeaderParseError: expected atext but found ''

The issue is the trailing dot, which is arguably not great, but it's very valid actually, and the email address provided is the same as the email address without a dot.

Your environment

  • CPython versions tested on: 3.11.1-1 on Debian unstable
  • Operating system and architecture: Debian unstable, amd64

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions