Re: problem with message headers in python bindings

Subject: Re: problem with message headers in python bindings

Date: Sun, 05 Dec 2021 08:35:53 -0400



From: David Bremner

David Bremner <> writes:

> On a host running Debian Stable with python 3.9.2, and notmuch 0.31.4,
> both of the attached programs work fine. On my developement host running
> notmuch 0.34, both segfault when trying to fetch the 'to' header. This
> invokes a more complicated code path, which seems to have broken
> sometime between 0.31.4 and 0.34.
> I guess something changed in the library that the bindings need to catch
> up with.
> import notmuch2
> db=notmuch2.Database()
> m=db.find('')
> frm=m.header('from')
> print(frm)
> to=m.header('To')
> print(to)

This is fixed for the new python bindings in commit 0.34.1-9-gd7f95724;
should be part of 0.34.2.

I think I'm going to ignore the problem with the old bindings, since it
pertains to a new feature, and people wanting new features should
migrate away from the deprecated bindings.

notmuch mailing list --
To unsubscribe send an email to