]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-49680: Add translate_line_endings parameter to imaplib.IMAP4.append (GH-152775)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 2 Jul 2026 11:17:37 +0000 (14:17 +0300)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2026 11:17:37 +0000 (11:17 +0000)
commitddb6539c4976b18895bb5c5cd37d197c60fb459d
tree863bb212c4ce19941edc266e76df5ec4a0f96691
parenta50b089b7c46e3068d9177b5f18ac767a31a18cd
gh-49680: Add translate_line_endings parameter to imaplib.IMAP4.append (GH-152775)

Pass False to send the message as an exact sequence of octets, without
rewriting bare CR or LF to CRLF.

Also add tests for the APPEND command, including an email message
round-trip.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: harjoth <harjoth.khara@gmail.com>
Doc/library/imaplib.rst
Lib/imaplib.py
Lib/test/test_imaplib.py
Misc/NEWS.d/next/Library/2026-07-01-14-00-00.gh-issue-49680.Lm5rQv.rst [new file with mode: 0644]