Skip to content

Conversation

@Yoav11
Copy link
Contributor

@Yoav11Yoav11 commented Jul 20, 2025

Description

this PR was created during EuroPython 2025 Sprint Weekend.

It builds on #5176 authored by @elafontaine


📚 Documentation preview 📚: https://cpython-previews--136850.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-botbot commented Jul 20, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@Yoav11Yoav11 changed the title gh-28879: Add Date header if missing in smtplib send_messagebpo-28879: Add Date header if missing in smtplib send_messageJul 20, 2025
@StanFromIreland
Copy link
Member

Please change the title to use the GitHub issue number.

@Yoav11Yoav11 changed the title bpo-28879: Add Date header if missing in smtplib send_messagegh-73065: Add Date header if missing in smtplib send_messageJul 20, 2025
@Yoav11Yoav11 marked this pull request as ready for review July 20, 2025 08:22
@Yoav11Yoav11 requested a review from a team as a code ownerJuly 20, 2025 08:22
HOST, self.port, local_hostname='localhost',
timeout=support.LOOPBACK_TIMEOUT)
self.addCleanup(smtp.close)
self.assertEqual(smtp.send_message(msg),{})
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am moving these assertions further up so that I can extract the date from the message in order to build the expected string

@StanFromIreland
Copy link
Member

@Yoav11 A little suggestion, when you complete a suggestion, whether that be by implementing it or providing a reason why you are not going to, please mark the conversation as "Resolved," this keeps the PR more organized.

Copy link
Contributor

@ilovelinuxilovelinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider mocking the date with a non-UTC time of which we know the timezone

@StanFromIreland
Copy link
Member

Please do not use the Update Branch button unless necessary (e.g. fixing conflicts, jogging the CI, or very old PRs) as it uses valuable resources. For more information see the devguide.

Copy link
Contributor

@ilovelinuxilovelinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Well done

@ilovelinux
Copy link
Contributor

@StanFromIreland the PR should be ready to be merged

@ilovelinux
Copy link
Contributor

@StanFromIreland bump 🙂

@StanFromIreland
Copy link
Member

The email experts have been requested, please be patient.

@ilovelinux
Copy link
Contributor

Thanks for the update 🙂

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Yoav11@StanFromIreland@ilovelinux@elafontaine@tomasr8@ynir3