Re: notmuch-mutt: Use of uninitialized value.
authorProfpatsch <mail@profpatsch.de>
Wed, 13 Feb 2013 18:08:51 +0000 (19:08 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:53:36 +0000 (09:53 -0800)
f0/410da52a9c75cff950f83a2b4aeb74f5b7655e [new file with mode: 0644]

diff --git a/f0/410da52a9c75cff950f83a2b4aeb74f5b7655e b/f0/410da52a9c75cff950f83a2b4aeb74f5b7655e
new file mode 100644 (file)
index 0000000..5d74257
--- /dev/null
@@ -0,0 +1,133 @@
+Return-Path: <mail@profpatsch.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 90F82431FD6\r
+       for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:55 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id e17hBtq2ZbOo for <notmuch@notmuchmail.org>;\r
+       Wed, 13 Feb 2013 10:08:54 -0800 (PST)\r
+Received: from smtprelay04.ispgateway.de (smtprelay04.ispgateway.de\r
+       [80.67.31.27])\r
+       by olra.theworths.org (Postfix) with ESMTP id 30F99431FC9\r
+       for <notmuch@notmuchmail.org>; Wed, 13 Feb 2013 10:08:54 -0800 (PST)\r
+Received: from [146.52.250.61] (helo=localhost)\r
+       by smtprelay04.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128)\r
+       (Exim 4.68) (envelope-from <mail@profpatsch.de>)\r
+       id 1U5glG-00041W-DR; Wed, 13 Feb 2013 19:08:50 +0100\r
+Date: Wed, 13 Feb 2013 19:08:51 +0100\r
+From: Profpatsch <mail@profpatsch.de>\r
+To: notmuch@notmuchmail.org, zack@upsilon.cc\r
+Subject: Re: notmuch-mutt: Use of uninitialized value.\r
+Message-ID: <20130213180851.GA954@soarin>\r
+Mail-Followup-To: Profpatsch <mail@profpatsch.de>, notmuch@notmuchmail.org,\r
+       zack@upsilon.cc\r
+References: <20130212005801.GA8419@soarin> <20130212162702.GA29880@upsilon.cc>\r
+       <20130212165531.GA5030@soarin.rz.uni-augsburg.de>\r
+       <20130212202908.GF11148@upsilon.cc> <20130212215105.GA16646@soarin>\r
+       <20130213162604.GA30098@upsilon.cc>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-sha1;\r
+       protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI"\r
+Content-Disposition: inline\r
+In-Reply-To: <20130213162604.GA30098@upsilon.cc>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Df-Sender: bWFpbEBwcm9mcGF0c2NoLmRl\r
+X-Mailman-Approved-At: Wed, 13 Feb 2013 10:21:10 -0800\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 13 Feb 2013 18:08:55 -0000\r
+\r
+\r
+--oyUTqETQ0mS9luUI\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On 13-02-13 05:26pm, Stefano Zacchiroli wrote:\r
+> OK, I understand the problem now. Although I don't understand how it's\r
+> possible. Can you please do the following test:\r
+>=20\r
+> - go on a mail, try <F9> on it to ensure it exhibit the bad behavior\r
+>   you've reported\r
+\r
+It does.\r
+\r
+> - find out the Message-Id of that mail, e.g.\r
+> "20130213095752.GA20009@foobar"\r
+> - on a shell prompt, try:\r
+>     notmuch search --output=3Dthreads id:20130213095752.GA20009@foobar\r
+> - it should give you something like\r
+>   thread:0000000000018bce\r
+\r
+% notmuch search --output=3Dthreads\r
+id:8e85854f-8b30-4821-bf3e-4c19e576bf67@googlegroups.com\r
+thread:0000000000000566\r
+\r
+% notmuch search thread:0000000000000566\r
+thread:0000000000000566  Today 04:59 [39/39] [=E2=80=A6]\r
+\r
+So it=E2=80=99s not notmuch.\r
+\r
+Bear in mind that I use Arch, so this is the version on my system atm:\r
+https://www.archlinux.org/packages/community/x86_64/notmuch-mutt/\r
+\r
+This is the bad guy:\r
+sub get_message_id() {\r
+    my $mail =3D Mail::Internet->new(\*STDIN);\r
+    $mail->head->get("message-id") =3D~ /^<(.*)>$/;# get message-id #l.124\r
+    return $1;\r
+}\r
+\r
+I=E2=80=99m not much of a perl coder (not at all to be exact), but\r
+    Use of uninitialized value in pattern match (m//) at\r
+    /usr/bin/notmuch-mutt line 124, <STDIN> line 66.\r
+sounds suspiciously like nothing gets read out of STDIN and $mail is\r
+definitely not a Mail::Internet object.\r
+\r
+~Profpatsch\r
+\r
+--=20\r
+Proudly written in Mutt with Vim on Archlinux.\r
+Q: Why is this email five sentences or less?\r
+A: http://five.sentenc.es\r
+\r
+--oyUTqETQ0mS9luUI\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2.0.19 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJRG9azAAoJEMXP0IsiJHzfTTsP+QEEQLm4/uhXvurD2M3oKN6A\r
+wfptBDUrB5aQH25xL/ZR68ql5QQpFLl2m2+14h2ypCj9Qe/XQnU2GxScsfsRVZae\r
+zl3XlHHzYihwrm2L15ctflPaCNwqyuezTKx17ne2kIE/j4BlGQqXoDMOms6o43nf\r
+QukuiIwbun0QIWMq6H6UqNiD++uNv7YIhvmzEJM0AJKc/lOIEkv/vtC2IMkWyobW\r
+jSzzLCrLZaQjfIPkHY+033jpQ0hVk/oRsdMsTx8SGqn319HdO1bz3aFUV5ZZcwKm\r
+UwUkD7xl/zPcS4nlQ/aDHKOlNWxQaDUaTqlYDiPRnLNK5aopvle6YrkuqD04J2q8\r
+FKu9JtSjGDVBJo+Wgv9n3T0fzuXYK51BW8yzTa4CKGhdssHILpT5s5GcQVrrNIGA\r
+pXgmwKPdvKPCOzTdehZQNAmcSOMWUd/EEmD3oEOEjC3TMRltzQe1t/HWhz344Rq4\r
+NhlTxsatXWLB9uQOrb9P5YwpicAdGXpwaq0Lu+JplUEU9ecB/+gJypVVat8VhLGa\r
+Rldl6c3ZZ7H9rlG5sovdt+fri05Z0UwAlI/RxdKeU5feEc2XzD2xDuwfWsSSJ3ve\r
+BMb0pk0CKc1TU/1G2Y1vtrQ7Bh8QBB1jHETxvQCjzIJxGpPOwgGX/dVbo/mSa5kp\r
+v7kUQ4kuTuVlAlqRAZc7\r
+=nUiN\r
+-----END PGP SIGNATURE-----\r
+\r
+--oyUTqETQ0mS9luUI--\r