Your message dated Sat, 22 Feb 2025 12:49:11 +0000
with message-id <[email protected]>
and subject line Bug#749890: fixed in notmuch 0.39~rc0-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

Attachment: 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~rc0-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, 22 Feb 2025 08:12:33 -0400
Source: notmuch
Architecture: source
Version: 0.39~rc0-1
Distribution: experimental
Urgency: medium
Maintainer: Carl Worth <[email protected]>
Changed-By: David Bremner <[email protected]>
Closes: 749890 893057 970834 1092047
Changes:
 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:
 cf91b170fc252d2a3ac359fe6c1564653ab814fc 2852 notmuch_0.39~rc0-1.dsc
 00983018f6607f0f97cc9edf7d1497a61f2e555c 810148 notmuch_0.39~rc0.orig.tar.xz
 d34932847e19c472d58dcb55fa522f3e819d8c45 21408 notmuch_0.39~rc0-1.debian.tar.xz
Checksums-Sha256:
 78fd21c34f56f4197d63cd237569391bb4443b5491223dba3f11462de5ef27a4 2852 
notmuch_0.39~rc0-1.dsc
 5060206abe996b86f0de041d408a6af026622400a3eba9f9134a17f05223ed69 810148 
notmuch_0.39~rc0.orig.tar.xz
 7c9fbfe6f6215213b8cba51c4208e7872750df6983efeb63def91c8ff93fb95c 21408 
notmuch_0.39~rc0-1.debian.tar.xz
Files:
 1c6c6c5e86eb2c57ac573ba3cdc4371a 2852 mail optional notmuch_0.39~rc0-1.dsc
 10424f1149358ee1c09248a0b568c98b 810148 mail optional 
notmuch_0.39~rc0.orig.tar.xz
 39a9801f0efed1b554a08700f3ec4801 21408 mail optional 
notmuch_0.39~rc0-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS5beC2erx2PFqyC7XhcL+0NDTnAAUCZ7nBtwAKCRDhcL+0NDTn
ANzYAQCht6g08Yec8/YoCMoCxgcZRdrFu0+LVbZrCZyyoCmUrAD+IGPbE7Sqda42
xvGbG+x4jSVaFiyMdIHplbFt/gVpawk=
=S+rn
-----END PGP SIGNATURE-----

Attachment: pgpi6KmeSE7v9.pgp
Description: PGP signature


--- End Message ---

Reply via email to