This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flokli
Recipients barry, flokli, r.david.murray
Date 2020-11-22.10:09:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606039772.66.0.933443286563.issue42433@roundup.psfhosted.org>
In-reply-to
Content
I'm importing some mbox archives into my maildirs, and use `mailbox.mbox` to parse archives created by pipermail.

Some of these archives seem to contain non-ascii characters, and python just throws a `UnicodeDecodeError` and refuses to process the archive.

Reproducer: (successful on 3.7.9, 3.8.5, 3.9.0)

```
curl https://lists.freedesktop.org/archives/systemd-devel/2016-January.txt.gz | zcat > mbox.txt
python3 -c "import mailbox; mb = mailbox.mbox('mbox.txt');mb.items()"
```
History
Date User Action Args
2020-11-22 10:09:32floklisetrecipients: + flokli, barry, r.david.murray
2020-11-22 10:09:32floklisetmessageid: <1606039772.66.0.933443286563.issue42433@roundup.psfhosted.org>
2020-11-22 10:09:32floklilinkissue42433 messages
2020-11-22 10:09:32floklicreate