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

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

Date: Mon, 03 Oct 2011 22:10:58 -0300

To: Ali Polatel, Austin Clements

Cc: Notmuch Mailing List

From: David Bremner


On Sat,  1 Oct 2011 11:12:23 +0300, Ali Polatel <polatel@gmail.com> wrote:
> From: Ali Polatel <alip@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

 

Thread: