From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <mail@profpatsch.de>
Received: from localhost (localhost [127.0.0.1])
	by olra.theworths.org (Postfix) with ESMTP id 90F82431FD6
	for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:55 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=-999 required=5
	tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled
Received: from olra.theworths.org ([127.0.0.1])
	by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id e17hBtq2ZbOo for <notmuch@notmuchmail.org>;
	Wed, 13 Feb 2013 10:08:54 -0800 (PST)
Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de
	[80.67.31.27])
	by olra.theworths.org (Postfix) with ESMTP id 30F99431FC9
	for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:54 -0800 (PST)
Received: from [146.52.250.61] (helo=localhost)
	by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128)
	(Exim 4.68) (envelope-from <mail@profpatsch.de>)
	id 1U5glG-00041W-DR; Wed, 13 Feb 2013 19:08:50 +0100
Date: Wed, 13 Feb 2013 19:08:51 +0100
From: Profpatsch <mail@profpatsch.de>
To: notmuch@notmuchmail.org, zack@upsilon.cc
Subject: Re: notmuch-mutt: Use of uninitialized value.
Message-ID: <20130213180851.GA954@soarin>
Mail-Followup-To: Profpatsch <mail@profpatsch.de>, notmuch@notmuchmail.org,
	zack@upsilon.cc
References: <20130212005801.GA8419@soarin> <20130212162702.GA29880@upsilon.cc>
	<20130212165531.GA5030@soarin.rz.uni-augsburg.de>
	<20130212202908.GF11148@upsilon.cc> <20130212215105.GA16646@soarin>
	<20130213162604.GA30098@upsilon.cc>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI"
Content-Disposition: inline
In-Reply-To: <20130213162604.GA30098@upsilon.cc>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Df-Sender: bWFpbEBwcm9mcGF0c2NoLmRl
X-Mailman-Approved-At: Wed, 13 Feb 2013 10:21:10 -0800
X-BeenThere: notmuch@notmuchmail.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: "Use and development of the notmuch mail system."
	<notmuch.notmuchmail.org>
List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
	<mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
List-Archive: <http://notmuchmail.org/pipermail/notmuch>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
	<mailto:notmuch-request@notmuchmail.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Feb 2013 18:08:55 -0000


--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 13-02-13 05:26pm, Stefano Zacchiroli wrote:
> OK, I understand the problem now. Although I don't understand how it's
> possible. Can you please do the following test:
>=20
> - go on a mail, try <F9> on it to ensure it exhibit the bad behavior
>   you've reported

It does.

> - find out the Message-Id of that mail, e.g.
> "20130213095752.GA20009@foobar"
> - on a shell prompt, try:
>     notmuch search --output=3Dthreads id:20130213095752.GA20009@foobar
> - it should give you something like
>   thread:0000000000018bce

% notmuch search --output=3Dthreads
id:8e85854f-8b30-4821-bf3e-4c19e576bf67@googlegroups.com
thread:0000000000000566

% notmuch search thread:0000000000000566
thread:0000000000000566  Today 04:59 [39/39] [=E2=80=A6]

So it=E2=80=99s not notmuch.

Bear in mind that I use Arch, so this is the version on my system atm:
https://www.archlinux.org/packages/community/x86_64/notmuch-mutt/

This is the bad guy:
sub get_message_id() {
    my $mail =3D Mail::Internet->new(\*STDIN);
    $mail->head->get("message-id") =3D~ /^<(.*)>$/;# get message-id #l.124
    return $1;
}

I=E2=80=99m not much of a perl coder (not at all to be exact), but
    Use of uninitialized value in pattern match (m//) at
    /usr/bin/notmuch-mutt line 124, <STDIN> line 66.
sounds suspiciously like nothing gets read out of STDIN and $mail is
definitely not a Mail::Internet object.

~Profpatsch

--=20
Proudly written in Mutt with Vim on Archlinux.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRG9azAAoJEMXP0IsiJHzfTTsP+QEEQLm4/uhXvurD2M3oKN6A
wfptBDUrB5aQH25xL/ZR68ql5QQpFLl2m2+14h2ypCj9Qe/XQnU2GxScsfsRVZae
zl3XlHHzYihwrm2L15ctflPaCNwqyuezTKx17ne2kIE/j4BlGQqXoDMOms6o43nf
QukuiIwbun0QIWMq6H6UqNiD++uNv7YIhvmzEJM0AJKc/lOIEkv/vtC2IMkWyobW
jSzzLCrLZaQjfIPkHY+033jpQ0hVk/oRsdMsTx8SGqn319HdO1bz3aFUV5ZZcwKm
UwUkD7xl/zPcS4nlQ/aDHKOlNWxQaDUaTqlYDiPRnLNK5aopvle6YrkuqD04J2q8
FKu9JtSjGDVBJo+Wgv9n3T0fzuXYK51BW8yzTa4CKGhdssHILpT5s5GcQVrrNIGA
pXgmwKPdvKPCOzTdehZQNAmcSOMWUd/EEmD3oEOEjC3TMRltzQe1t/HWhz344Rq4
NhlTxsatXWLB9uQOrb9P5YwpicAdGXpwaq0Lu+JplUEU9ecB/+gJypVVat8VhLGa
Rldl6c3ZZ7H9rlG5sovdt+fri05Z0UwAlI/RxdKeU5feEc2XzD2xDuwfWsSSJ3ve
BMb0pk0CKc1TU/1G2Y1vtrQ7Bh8QBB1jHETxvQCjzIJxGpPOwgGX/dVbo/mSa5kp
v7kUQ4kuTuVlAlqRAZc7
=nUiN
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--