[PATCH] lib: make find_message{,by_filename) report errors

David Bremner david at tethera.net
Mon Oct 3 18:10:58 PDT 2011


On Sat,  1 Oct 2011 11:12:23 +0300, Ali Polatel <polatel at gmail.com> wrote:
> From: Ali Polatel <alip at exherbo.org>
> 
> Looks like the patch did not make it correctly the first time.
> Resending using git-send-email™
> 
> You may also find the commit in my notmuch repository:
> git://github.com/alip/notmuch.git branch: find_message


Hi Ali;

Thanks for reworking this patch. I looked at branch find_message-v2
in your repo. I have a few comments.

- In the comments for _resolve_message_id_to_thread_id I guess thread_id
  should be thread_id_ret?

- in notmuch_database_find_message_by_file_name, I'm not sure why you
  set status to NOTMUCH_STATUS_OUT_OF_MEMORY in the catch block. Is this
  a typo?

- after the DONE: label of the same routine, how is *message_ret destroyed?
  does it need to wait until the talloc context "notmuch" is freed?

- I don't really get the change of user to caller around notmuch.h:286
  It is not a big deal, but I guess we should try to be consistent.

David

 


More information about the notmuch mailing list