[PATCH] Add a method to reparent threads to the database.

David Bremner david at tethera.net
Sat Mar 11 14:44:23 PST 2017

Steven Allen <steven at stebalien.com> writes:

> I'm writing high-level rust bindings for notmuch and would like to
> enable encapsulation of query logic. That is, I'd like to be able to
> write a function that performs a (set of) query(s) and returns a (or a
> set of) message(s)/thread(s). I can't do this currently because the
> messages/threads can't outlive the query. I could use reference counting
> to store the query until all messages/threads have been freed but that
> feels messy and shouldn't, strictly speaking, be necessary.

It probably wouldn't be as efficient, but it might be a cleaner API to
have a way to copy a message or thread into a malloced (or maybe user-provided

More information about the notmuch mailing list