Your message dated Sat, 15 Mar 2025 23:42:10 +0000
with message-id <[email protected]>
and subject line Bug#749890: fixed in notmuch 0.39-1
has caused the Debian Bug report #749890,
regarding python3-notmuch: missing header in mbox message -> NullPointerError
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
749890: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749890
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-notmuch
Version: 0.18-3
Severity: minor
If a message starts with the "From " postmark (i.e., it's in the mbox
format), and you ask the get_header() method for a non-existent header,
it raises NullPointerError, instead of returning empty string.
Now, I realize that support for indexing mbox files has been dropped,
but users might still have them on disk, indexed by an old version of
notmuch. This is how I discovered this bug.
I've attached my crafted mail archive (which I indexed with wheezy's
notmuch), and the script that I used for testing:
$ python3 test.py
OK
NullPointerError()
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages python3-notmuch depends on:
ii libnotmuch3 0.18-3+b1
--
Jakub Wilk
mail.tar.gz
Description: application/gzip
#!/usr/bin/python3
import notmuch
with notmuch.Database() as db:
query = db.create_query('')
for msg in query.search_messages():
try:
assert msg.get_header('Subject') == 'Hello world!'
assert msg.get_header('Does-Not-Exist') == ''
except Exception as exc:
print(ascii(exc))
else:
print('OK')
# vim:ts=4 sw=4 et
--- End Message ---
--- Begin Message ---
Source: notmuch
Source-Version: 0.39-1
Done: David Bremner <[email protected]>
We believe that the bug you reported is fixed in the latest version of
notmuch, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
David Bremner <[email protected]> (supplier of updated notmuch package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 15 Mar 2025 07:03:50 -0300
Source: notmuch
Architecture: source
Version: 0.39-1
Distribution: unstable
Urgency: medium
Maintainer: Carl Worth <[email protected]>
Changed-By: David Bremner <[email protected]>
Closes: 749890 893057 970834 1092047 1098852 1099252
Changes:
notmuch (0.39-1) unstable; urgency=medium
.
* New upstream release.
* Legacy python bindings (package python3-notmuch) are no longer
built. Consider switching to python3-notmuch2.
.
notmuch (0.39~rc3-1) experimental; urgency=medium
.
* New upstream pre-release
.
notmuch (0.39~rc2-2) experimental; urgency=medium
.
* Increase test timeout to 10m (per test script). This is currently
only needed for riscv64, but should be harmless elsewhere.
.
notmuch (0.39~rc2-1) experimental; urgency=medium
.
* New upstream pre-release
* Bug fix: "FTBFS: 1 test failed.", thanks to Santiago Vila (Closes:
#1099252).
.
notmuch (0.39~rc1-1) experimental; urgency=medium
.
* New upstream pre-release
* Bug fix: "FTBFS: 3 tests fail against Emacs 30.1", thanks to Sean
Whitton (Closes: #1098852). Force emacs 30 to use the older
pretty-printing style.
.
notmuch (0.39~rc0-1) experimental; urgency=medium
.
* New upstream pre-release
* Remove binary package python3-notmuch (Closes: #893057, #970834, #749890).
* Bug fix: "saving draft causing missing header fields", thanks to
Xiyue Deng (Closes: #1092047).
Checksums-Sha1:
0cb4451aca41328c989c32b359ba87866c3ad052 2833 notmuch_0.39-1.dsc
e0747f68c8644994662fd334bdc3946aed6fb936 811448 notmuch_0.39.orig.tar.xz
b93bb792723e49bfb7624786e1d6fd9007acce49 21724 notmuch_0.39-1.debian.tar.xz
Checksums-Sha256:
511e0191ef18b55bfb70b942f6036586214e2ee2e4d3c920cfd869f791cf98fc 2833
notmuch_0.39-1.dsc
b88bb02a76c46bad8d313fd2bb4f8e39298b51f66fcbeb304d9f80c3eef704e3 811448
notmuch_0.39.orig.tar.xz
fcecaddb53f82bf106f86050219e76808702d7346b40958186ccc32dacaa2a07 21724
notmuch_0.39-1.debian.tar.xz
Files:
c8fa070108396aab79927f448797f636 2833 mail optional notmuch_0.39-1.dsc
edce1607f13ad8cb9ea6409b8e04c4d6 811448 mail optional notmuch_0.39.orig.tar.xz
ef94ef09e3f3963af2f49a6453ead7e2 21724 mail optional
notmuch_0.39-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQS5beC2erx2PFqyC7XhcL+0NDTnAAUCZ9YEUgAKCRDhcL+0NDTn
ALDAAQDQxmRqFhmAG4NcqChDhYGZvTiPA8008c6/i6F9r+SrGQD/UL9q1spUnLYm
OCk38m8NDXwIqt9MRIZPuUCgs1CbfwE=
=12UE
-----END PGP SIGNATURE-----
pgpux0FguajeW.pgp
Description: PGP signature
--- End Message ---