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 34BE86DE1849 for ; Mon, 14 Mar 2016 13:54:17 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 k89EzXHuQ44p for ; Mon, 14 Mar 2016 13:54:14 -0700 (PDT) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) by arlo.cworth.org (Postfix) with ESMTPS id 802306DE1848 for ; Mon, 14 Mar 2016 13:54:14 -0700 (PDT) Received: from thinkbox (p5482CB69.dip0.t-ipconnect.de [84.130.203.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 535549A61BB; Mon, 14 Mar 2016 21:54:12 +0100 (CET) Received: from teythoon by thinkbox with local (Exim 4.84_2) (envelope-from ) id 1afZVC-00082X-Uj; Mon, 14 Mar 2016 21:54:10 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: David Bremner , notmuch@notmuchmail.org From: Justus Winter <4winter@informatik.uni-hamburg.de> In-Reply-To: <87k393l86x.fsf@zancas.localnet> Cc: 749890@bugs.debian.org References: <87k393l86x.fsf@zancas.localnet> Message-ID: <20160314205410.4648.16140@thinkbox.jade-hamburg.de> User-Agent: alot/0.3.8.dev Subject: Re: [Jakub Wilk] Bug#749890: python3-notmuch: missing header in mbox message -> NullPointerError Date: Mon, 14 Mar 2016 21:54:10 +0100 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Mon, 14 Mar 2016 20:54:17 -0000 Hi, Quoting David Bremner (2014-05-30 15:14:46) > this looks like a bug in the python bindings to me > = > Package: python3-notmuch > Version: 0.18-3 > Severity: minor > = > If a message starts with the "From " postmark (i.e., it's in the mbox = > format), and you ask the get_header() method for a non-existent header, = > it raises NullPointerError, instead of returning empty string. > = > Now, I realize that support for indexing mbox files has been dropped, = > but users might still have them on disk, indexed by an old version of = > notmuch. This is how I discovered this bug. > = > I've attached my crafted mail archive (which I indexed with wheezy's = > notmuch), and the script that I used for testing: I cannot reproduce this neither with master nor with 0.21-3 from unstable. Justus