unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Profpatsch <mail@profpatsch.de>
To: notmuch@notmuchmail.org, zack@upsilon.cc
Subject: Re: notmuch-mutt: Use of uninitialized value.
Date: Wed, 13 Feb 2013 19:08:51 +0100	[thread overview]
Message-ID: <20130213180851.GA954@soarin> (raw)
In-Reply-To: <20130213162604.GA30098@upsilon.cc>

[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]

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:
> 
> - 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=threads id:20130213095752.GA20009@foobar
> - it should give you something like
>   thread:0000000000018bce

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

% notmuch search thread:0000000000000566
thread:0000000000000566  Today 04:59 [39/39] […]

So it’s 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 = Mail::Internet->new(\*STDIN);
    $mail->head->get("message-id") =~ /^<(.*)>$/;# get message-id #l.124
    return $1;
}

I’m 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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-02-13 18:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-12  0:58 notmuch-mutt: Use of uninitialized value Profpatsch
2013-02-12 16:27 ` Stefano Zacchiroli
     [not found]   ` <20130212165531.GA5030@soarin.rz.uni-augsburg.de>
2013-02-12 20:29     ` Stefano Zacchiroli
     [not found]       ` <20130212215105.GA16646@soarin>
2013-02-13 16:26         ` Stefano Zacchiroli
2013-02-13 18:08           ` Profpatsch [this message]
2013-02-13 22:35 ` Kevin J. McCarthy
2013-02-13 23:36   ` Profpatsch
2013-02-14  8:17     ` Andrei POPESCU
2013-02-14  8:37     ` Stefano Zacchiroli
2013-02-14  9:13       ` Suvayu Ali
2013-02-14 14:13       ` Profpatsch
2013-02-14 19:53         ` [OT] mutt configuration & philosophy (was Re: notmuch-mutt: Use of uninitialized value.) Michael Elkins
2013-02-14 22:59           ` David Bremner
2013-02-14 23:06       ` notmuch-mutt: Use of uninitialized value Kevin J. McCarthy
2013-02-15  2:45         ` Suvayu Ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130213180851.GA954@soarin \
    --to=mail@profpatsch.de \
    --cc=notmuch@notmuchmail.org \
    --cc=zack@upsilon.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).