From 78780233b9a7df20f00936c9531acf471dbe7dfc Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Mon, 14 Mar 2016 21:54:10 +0100 Subject: [PATCH] Re: [Jakub Wilk] Bug#749890: python3-notmuch: missing header in mbox message -> NullPointerError --- 1b/e9e67767139f1d5c9a9aac5eaaad53915d0e7a | 88 +++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 1b/e9e67767139f1d5c9a9aac5eaaad53915d0e7a diff --git a/1b/e9e67767139f1d5c9a9aac5eaaad53915d0e7a b/1b/e9e67767139f1d5c9a9aac5eaaad53915d0e7a new file mode 100644 index 000000000..5192590c8 --- /dev/null +++ b/1b/e9e67767139f1d5c9a9aac5eaaad53915d0e7a @@ -0,0 +1,88 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +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 -- 2.26.2