Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python Subject: Re: Issues when reading mailboxes from alioth-lists.debian.net Date: Wed, 19 Aug 2020 20:10:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Aug 19 18:00:05 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Mailing-List: archive/latest/18582 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20200819175949.GA9108@an3as.eu Approved: robomod@news.nic.it Lines: 24 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 19 Aug 2020 19:59:49 +0200 X-Original-Message-ID: <20200819175949.GA9108@an3as.eu> X-Original-References: <20200819130131.GG7363@an3as.eu> <0f7c90b5-beb6-4387-bd74-55715746b30e@gmail.com> Xref: csiph.com linux.debian.maint.python:12832 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