Skip to content
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

email set_content does not always use the correct line length for the base64 CTE #72234

Closed
bitdancer opened this issue Sep 9, 2016 · 3 comments
Assignees
Labels
topic-email type-bug An unexpected behavior, bug, or error

Comments

@bitdancer
Copy link
Member

BPO 28047
Nosy @warsaw, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/bitdancer'
closed_at = <Date 2016-09-09.19:01:29.457>
created_at = <Date 2016-09-09.18:25:05.350>
labels = ['type-bug', 'expert-email']
title = 'email set_content does not always use the correct  line length for the base64 CTE'
updated_at = <Date 2016-09-09.19:01:29.456>
user = 'https://github.com/bitdancer'

bugs.python.org fields:

activity = <Date 2016-09-09.19:01:29.456>
actor = 'r.david.murray'
assignee = 'r.david.murray'
closed = True
closed_date = <Date 2016-09-09.19:01:29.457>
closer = 'r.david.murray'
components = ['email']
creation = <Date 2016-09-09.18:25:05.350>
creator = 'r.david.murray'
dependencies = []
files = []
hgrepos = []
issue_num = 28047
keywords = []
message_count = 3.0
messages = ['275373', '275390', '275392']
nosy_count = 3.0
nosy_names = ['barry', 'r.david.murray', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue28047'
versions = ['Python 3.5', 'Python 3.6']

@bitdancer
Copy link
Member Author

The per-line character count is calculated incorrectly, such that some specified line lengths result in padding being added to each line, which is incorrect and breaks subsequent decoding.

@bitdancer bitdancer self-assigned this Sep 9, 2016
@bitdancer bitdancer added topic-email type-bug An unexpected behavior, bug, or error labels Sep 9, 2016
@python-dev
Copy link
Mannequin

python-dev mannequin commented Sep 9, 2016

New changeset 99db6a25444b by R David Murray in branch '3.5':
bpo-28047: Fix calculation of base64 line length.
https://hg.python.org/cpython/rev/99db6a25444b

@bitdancer
Copy link
Member Author

This is buggy in the old email code as well, but it doesn't affect anything there because only the default line length is ever used.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-email type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant