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

mailbox Babyl support should use visible header as full header when full header is empty #114579

Open
jikamens opened this issue Jan 26, 2024 · 0 comments
Labels
type-bug An unexpected behavior, bug, or error

Comments

@jikamens
Copy link

jikamens commented Jan 26, 2024

Bug report

Bug description:

The Babyl message file format supported by the mailbox module has two sections for headers; a "full" header section and a "visible" headers section. Software that uses the Babyl software natively interprets an empty "full" header section as meaning that the visible and full headers are identical, so they don't have to be stored twice in the file. The Python module doesn't do this; if it encounters a message in a Babyl file which has nothing between the labels line and the '*** EOOH *** line, it creates a message object with no headers. Instead, in this case it should interpret the headers after the *** EOOH *** line as full headers for the message.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

@jikamens jikamens added the type-bug An unexpected behavior, bug, or error label Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant