cli/insert: add fail path to add_file_to_database
authorJani Nikula <jani@nikula.org>
Fri, 3 Oct 2014 21:18:58 +0000 (23:18 +0200)
committerDavid Bremner <david@tethera.net>
Sat, 18 Oct 2014 05:53:15 +0000 (07:53 +0200)
commit5df46a3d9efcc201700b02e70b11808fcc40beab
treef43b17ec21b196abbc4c8320c606092ae451ef56
parenta6cee01b4e537e22b008f838d4af4e9d2f012f22
cli/insert: add fail path to add_file_to_database

Handle failures gracefully in add_file_to_database, renamed simply
add_file while at it. Add keep option to not remove the message from
database if tagging or tag syncing to maildir flags fails. Expand the
function documentation to cover the changes.
notmuch-insert.c