Closed pazz closed 3 years ago
@flub might be able to help here.
Looking at the notmuch2 code this is entirely expected, libnotmuch is returning an empty string because the header is missing and notmuch2 is turning this into a LookupError
.
Comparing this with the previous python bindinds however, they did not do this check and simply decoded the empty string and returned it. Leaving it up to the caller to handle the empty string.
So you probably need to update the caller to the new API contract (which I think is more suitable for Python bindings, but let me know if you disagree).
It seems that
msg.header('From')
fails, possibly on a malformed email.Software Versions
To Reproduce Not entirely sure, for me one a
refine
command failed on one (not all) querystring.Error Log