]> git.cworth.org Git - notmuch/blobdiff - test/T055-path-config.sh
Merge branch 'release'
[notmuch] / test / T055-path-config.sh
index 38f72e5e3bee85cad71ee414518459cd84a5154c..f0ce55dac93a494d51ab3eab9cb1c9bbcdb9c9a7 100755 (executable)
@@ -306,7 +306,23 @@ EOF
           output2=$(notmuch --config='' config get ${key})
           notmuch config set ${key}
           test_expect_equal "${output}+${output2}" "${value}+"
-          ;;
+          ;&
+       split)
+          test_begin_subtest "'to' header does not crash (python-cffi) ($config)"
+          echo 'notmuch@notmuchmail.org' > EXPECTED
+          test_python <<EOF
+from notmuch2 import Database
+db=Database(config=Database.CONFIG.SEARCH)
+m=db.find('20091117232137.GA7669@griffis1.net')
+to=m.header('To')
+print(to)
+EOF
+          test_expect_equal_file EXPECTED OUTPUT
+          ;& # fall through
+   esac
+
+   case $config in
+       split|XDG*)
    esac
    restore_config
    rm -rf home/.local