This reproduces the bug(s) reported in id:87h7d4wp6b.fsf@tethera.net --- test/T055-path-config.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index ef22e964..c06962e4 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -308,6 +308,34 @@ EOF test_expect_equal "${output}+${output2}" "${value}+" ;; esac + + case $config in + split|XDG*) + test_begin_subtest "'to' header does not crash (python) ($config)" + test_subtest_known_broken + echo 'notmuch@notmuchmail.org' > EXPECTED + test_python <<EOF +import notmuch +db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) +m=db.find_message('20091117232137.GA7669@griffis1.net') +to=m.get_header('to') +print(to) +EOF + test_expect_equal_file EXPECTED OUTPUT + + test_begin_subtest "'to' header does not crash (python-cffi) ($config)" + test_subtest_known_broken + echo 'notmuch@notmuchmail.org' > EXPECTED + test_python <<EOF +import notmuch2 +db=notmuch2.Database() +m=db.find('20091117232137.GA7669@griffis1.net') +to=m.header('To') +print(to) +EOF + test_expect_equal_file EXPECTED OUTPUT + ;; + esac restore_config rm -rf home/.local rm -rf home/.config -- 2.33.0 _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org