Skip to content

email.utils.getaddresses() incorrect value in email address part of tuple #107919

Open
@michal-dagan

Description

@michal-dagan

Bug report

Checklist

  • I am confident this is a bug in CPython, not a bug in a third-party project
  • I have searched the CPython issue tracker, and am confident this bug has not been reported before

A clear and concise description of the bug

I have this 'From' field in my EML file:
From: Test TEST, test<test@gmail.com>

gel_all_values_from_email_by_entry = eml.get_all(entry, [])
> ['Test TEST, test<test@test.com>']
getaddresses(gel_all_values_from_email_by_entry)
> [('', 'Test'), ('test', 'test@gmail.com')]

where 'Test' does not represent an email address

Your environment

  • CPython versions tested on:
  • Operating system and architecture:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions