Skip to content

email: documenting different behavior of trailing newline in set_content and set_payload #121542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ZeroIntensity opened this issue Jul 9, 2024 · 0 comments
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir topic-email

Comments

@ZeroIntensity
Copy link
Member

ZeroIntensity commented Jul 9, 2024

Documentation

See #121515, which reported that set_content() implicitly adds a newline to the end of the content (if it doesn't have one already), whereas set_payload() ignores it. Unfortunately, this would be a breaking change to fix, so we should just document this behavior.

Linked PRs

@ZeroIntensity ZeroIntensity added the docs Documentation in the Doc dir label Jul 9, 2024
@aisk aisk added stdlib Python modules in the Lib dir topic-email labels Jul 9, 2024
Eclips4 pushed a commit that referenced this issue Jan 18, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jan 18, 2025
pythonGH-121543)

(cherry picked from commit fba475a)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Yizheng Meng <[email protected]>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jan 18, 2025
pythonGH-121543)

(cherry picked from commit fba475a)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Yizheng Meng <[email protected]>
@Eclips4 Eclips4 closed this as completed Jan 18, 2025
Eclips4 pushed a commit that referenced this issue Jan 18, 2025
…)` (GH-121543) (#128995)

gh-121542: Document trailing newline behavior in `set_content()` (GH-121543)
(cherry picked from commit fba475a)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Yizheng Meng <[email protected]>
Eclips4 pushed a commit that referenced this issue Jan 18, 2025
…)` (GH-121543) (#128996)

gh-121542: Document trailing newline behavior in `set_content()` (GH-121543)
(cherry picked from commit fba475a)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Yizheng Meng <[email protected]>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this issue Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir topic-email
Projects
None yet
Development

No branches or pull requests

3 participants