This reproduces the bug(s) reported in id:[email protected]
---
 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 '[email protected]' > EXPECTED
+          test_python <<EOF
+import notmuch
+db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
+m=db.find_message('[email protected]')
+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 '[email protected]' > EXPECTED
+          test_python <<EOF
+import notmuch2
+db=notmuch2.Database()
+m=db.find('[email protected]')
+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 -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to