bpo-28764: mailbox.mbox: handle lines with non-ascii more graceful - #23553
bpo-28764: mailbox.mbox: handle lines with non-ascii more graceful#23553flokli wants to merge 1 commit into
Conversation
…aceful Don't fail to parse if non-ascii characters occur after a From: line.
|
Two cents from me: if I was using this API I'd not want to it to modify the data being imported silently and in a lossy way so an exception raised (the current behavior) seems superior to me. Even better would be to actually accept non-ascii characters as-is but I'm not sure how feasible that is. |
|
This was already silently skipping non-ascii things on lines that didn't start with a |
|
I'm totally unconvinced by https://bugs.python.org/issue42433#msg382169, but
seems like an argument to me, fair enough. |
|
This PR is stale because it has been open for 30 days with no activity. |
|
This isn't stale, but waiting for maintainer feedback (@bitdancer ?) |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Still waiting for feedback from maintainers. |
|
CLA signed |
|
@CoolCat467 is there anything preventing this PR from getting merged? Anything needed to do on my side? |
|
I think it needs maintainer review yet... Maybe look into adding reviewers in bpo? |
|
I can't assign people in bpo, but I can cc @maxking and @bitdancer on this PR due to #17620. |
|
Hi. I am having the same problem, I want to parse mbox files that contain international email addresses in the I think that the premise of using |
|
The way this library currently throws the |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Again just waiting for a review, not stale |
|
Needs a news item and a test, but the fix itself looks fine. |

Don't fail to parse if non-ascii characters occur after a From: line.
https://bugs.python.org/issue42433
https://bugs.python.org/issue28764