Re: Issues when reading mailboxes from alioth-lists.debian.net
On Wed, Aug 19, 2020 at 10:31:55PM +0530, Nilesh Patra wrote:
>
> For me the error goes way for me when I change line 781 in /usr/lib/python3.8/mailbox.py
> to:
>
> msg.set_from(from_line[5:].decode('utf-8'))
>
> May be this is a minor feature enhancement since at the moment messages with unicodes don't seem to be decoded.
> Or there's an API change which I'm not aware of.
>
> Either way this should act like a temorary fix for now. Let me know if this doesn't seem right.
BTW, its a regression compared to Python2. When calling the
python2 test_mbox.py
everything works.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: