This is v2 of the final three patches of [1]. The failure paths have been improved further still, with some new warning messages on any cleanup errors as well. Man pages have been updated. Tests are still lacking. The post-insert hook should be simple, but I haven't had a sudden outburst of creativity in figuring out how to test all the fail scenarios. BR, Jani. [1] id:cover.1411379395.git.jani@nikula.org Jani Nikula (3): cli/insert: add fail path to add_file_to_database cli/insert: require succesful message indexing for success status cli/insert: add post-insert hook doc/man1/notmuch-insert.rst | 26 ++++++-- doc/man5/notmuch-hooks.rst | 11 ++++ notmuch-insert.c | 140 +++++++++++++++++++++++++++++++------------- test/T070-insert.sh | 2 +- 4 files changed, 132 insertions(+), 47 deletions(-) -- 2.1.0