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 fails to read message from mbox #90040

Open
peterwurmsdobler mannequin opened this issue Nov 23, 2021 · 2 comments
Open

mailbox fails to read message from mbox #90040

peterwurmsdobler mannequin opened this issue Nov 23, 2021 · 2 comments
Labels
3.8 only security fixes stdlib Python modules in the Lib dir topic-email type-bug An unexpected behavior, bug, or error

Comments

@peterwurmsdobler
Copy link
Mannequin

peterwurmsdobler mannequin commented Nov 23, 2021

BPO 45882

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 = None
closed_at = None
created_at = <Date 2021-11-23.18:18:02.343>
labels = ['3.8', 'type-bug', 'library']
title = 'mailbox fails to read message from mbox'
updated_at = <Date 2021-11-23.18:18:02.343>
user = 'https://bugs.python.org/peterwurmsdobler'

bugs.python.org fields:

activity = <Date 2021-11-23.18:18:02.343>
actor = 'peter.wurmsdobler'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2021-11-23.18:18:02.343>
creator = 'peter.wurmsdobler'
dependencies = []
files = []
hgrepos = []
issue_num = 45882
keywords = []
message_count = 1.0
messages = ['406873']
nosy_count = 1.0
nosy_names = ['peter.wurmsdobler']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue45882'
versions = ['Python 3.8']

@peterwurmsdobler
Copy link
Mannequin Author

peterwurmsdobler mannequin commented Nov 23, 2021

When using mailbox to convert mbox files to maildir, I have noticed that it cannot handle messages in the mbox file that start with two subsequent From lines in the header like:

From - Fri Feb 20 09:46:18 1998
>From namel@company.com Wed Feb 18 18:38:38 1998

A new maildir message will be created, but none of fields following the two header lines such as Date etc. will be parsed; the result is a message with header and body inside the message.

@peterwurmsdobler peterwurmsdobler mannequin added 3.8 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Nov 23, 2021
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@fsc-eriker
Copy link
Contributor

That is not really a valid mbox file in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.8 only security fixes stdlib Python modules in the Lib dir topic-email type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants