From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 4415D6DE034D for ; Fri, 25 Aug 2017 03:18:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PN7S0_qvfHxh for ; Fri, 25 Aug 2017 03:18:13 -0700 (PDT) Received: from zeus.flokli.de (mail.zeus.flokli.de [88.198.15.28]) by arlo.cworth.org (Postfix) with ESMTPS id 178A36DE0183 for ; Fri, 25 Aug 2017 03:18:12 -0700 (PDT) Received: from localhost (unknown [109.236.159.166]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: flokli@flokli.de) by zeus.flokli.de (Postfix) with ESMTPSA id 15F812D8E69; Fri, 25 Aug 2017 10:18:10 +0000 (UTC) Date: Fri, 25 Aug 2017 12:18:09 +0200 From: Florian Klink To: Gaute Hope Cc: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] python: open messages in binary mode Message-ID: <20170825101809.wb7xejdxxiqrsg2z@tp.flokli.de> References: <20170824213001.22353-1-flokli@flokli.de> <87bmn47h0b.fsf@tethera.net> <1503641077.7gk2974n4k.astroid@strange.none> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1503641077.7gk2974n4k.astroid@strange.none> User-Agent: NeoMutt/20170714 (1.8.3) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2017 10:18:14 -0000 >>that function is only since python 3.2. I'm not sure if/when we'll drop >>python 2.7 support, but not without deprecating it for a few releases. >Is there anyone still exclusively on Python 2.7? Perhaps the time is >ripe for starting that process? Encoding compatability is an unholy >mess to maintain for one Python distro. If Python 2 doesn't have email.message_from_binary_file(), it might be the bug occuring to be can't really be fixed in Python 2 anyways. Maybe it's possible to open the file in binary mode on Python 2, and pass this to email.message_from_file() though, I will tinker around a bit this evening, and let you know. >Is any of alot, afew, etc still on Python 2 only? afew works on both Python 2 and 3 alot seems to currently be Python 2 only (at least the Travis runs are), but it looks like they are thinking about moving to Python 3 and dropping Python 2: https://github.com/pazz/alot/issues/1047#issuecomment-300713819 Florian