From: David Bremner <david@tethera.net>
To: Steven Allen <steven@stebalien.com>, Jani Nikula <jani@nikula.org>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH] Add a method to reparent threads to the database.
Date: Sat, 11 Mar 2017 18:44:23 -0400 [thread overview]
Message-ID: <8760jfqvqw.fsf@tethera.net> (raw)
In-Reply-To: <20151108191536.GA3115@stebalien.com>
Steven Allen <steven@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
buffer).
prev parent reply other threads:[~2017-03-11 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-01 20:07 [PATCH] Add method to reparent of message to the database Steven Allen
2015-11-07 21:04 ` [PATCH] Add a method to reparent threads " Steven Allen
2015-11-08 17:37 ` Jani Nikula
2015-11-08 19:15 ` Steven Allen
2017-03-11 22:44 ` David Bremner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760jfqvqw.fsf@tethera.net \
--to=david@tethera.net \
--cc=jani@nikula.org \
--cc=notmuch@notmuchmail.org \
--cc=steven@stebalien.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).