unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* problem with message headers in python bindings
@ 2021-10-26  1:27 David Bremner
  2021-10-26  1:56 ` David Bremner
  2021-12-05 12:35 ` problem with message headers in python bindings David Bremner
  0 siblings, 2 replies; 7+ messages in thread
From: David Bremner @ 2021-10-26  1:27 UTC (permalink / raw)
  To: notmuch

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


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test.py --]
[-- Type: text/x-python, Size: 162 bytes --]

import notmuch2

db=notmuch2.Database()

m=db.find('20211026002252.2823593-1-austin@austinray.io')

frm=m.header('from')
print(frm)

to=m.header('To')
print(to)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: test2.py --]
[-- Type: text/x-python, Size: 176 bytes --]

import notmuch

db=notmuch.Database()

m=db.find_message('20211026002252.2823593-1-austin@austinray.io')

frm=m.get_header('from')
print(frm)

to=m.get_header('To')
print(to)


[-- Attachment #4: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-05 12:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26  1:27 problem with message headers in python bindings David Bremner
2021-10-26  1:56 ` David Bremner
2021-10-26  2:11   ` [PATCH] test: add known broken tests for python bindings in split configs David Bremner
2021-10-27  2:36     ` WIP fix split-config for notmuch-python2 David Bremner
2021-10-27  2:36       ` [PATCH 1/2] WIP: add python-cffi bindings to path David Bremner
2021-10-27  2:36       ` [PATCH 2/2] WIP/python2: switch to notmuch_database_{open,create}_with_config David Bremner
2021-12-05 12:35 ` problem with message headers in python bindings David Bremner

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).