lib: make find_message{,by_filename) report errors
authorAli Polatel <alip@exherbo.org>
Tue, 4 Oct 2011 04:55:29 +0000 (07:55 +0300)
committerAli Polatel <alip@exherbo.org>
Tue, 4 Oct 2011 04:55:29 +0000 (07:55 +0300)
commit02a30767116ad8abcbd0a3351f2e4d43bbbd655f
tree8997ef14cb1b3a64527ec8246e031fed92a170c5
parent9b3f16ce715d2371224955bc5b6f948eaa4ee325
lib: make find_message{,by_filename) report errors

Previously, the functions notmuch_database_find_message() and
notmuch_database_find_message_by_filename() functions did not properly
report error condition to the library user.

For more information, read the thread on the notmuch mailing list
starting with my mail "id:871uv2unfd.fsf@gmail.com"

Make these functions accept a pointer to 'notmuch_message_t' as argument
and return notmuch_status_t which may be used to check for any error
condition.

restore: Modify for the new notmuch_database_find_message()
new: Modify for the new notmuch_database_find_message_by_filename()
lib/database.cc
lib/message.cc
lib/notmuch.h
notmuch-new.c
notmuch-restore.c