lib: Indicate whether notmuch_database_remove_message removed anything.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:06:00 +0000 (10:06 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit4b418343f656c2de5503d907d075019626561373
treefb5d30faffaf7161211c163d08f288e7a8fa055f
parent777cd23d9db64c8015fe880a106e84c3634bf19f
lib: Indicate whether notmuch_database_remove_message removed anything.

Similar to the return value of notmuch_database_add_message, we now
enhance the return value of notmuch_database_remove_message to
indicate whether the message document was entirely removed (SUCCESS)
or whether only this filename was removed and the document exists
under other filenamed (DUPLICATE_MESSAGE_ID).
lib/database.cc
lib/notmuch.h