]> git.notmuchmail.org Git - notmuch/commit
python: add decrypt_policy argument to Database.index_file()
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 19 Dec 2017 19:08:50 +0000 (14:08 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 24 Dec 2017 13:47:35 +0000 (09:47 -0400)
commit6aec7a76b9e70544a93b092c50d167c3e63548ee
treeed9b6069745122023e395548f5bec0842b4a9481
parente0ac149955686353570c19c9949c9032d46fb30f
python: add decrypt_policy argument to Database.index_file()

We adopt a pythonic idiom here with an optional argument, rather than
exposing the user to the C indexopts object directly.

This now includes a simple test to ensure that the decrypt_policy
argument works as expected.
bindings/python/notmuch/database.py
bindings/python/notmuch/globals.py
test/T390-python.sh