--git a/test/T720-lib-lifetime.sh b/test/T720-lib-lifetime.sh
new file mode 100755
index ..3d94d4df
--- /dev/null
+++ b/test/T720-lib-lifetime.sh
@@ -0,0 +1,83 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2018 rhn
+#
+
+
+test_description="Lifetime constraints for library"
+
+. $(d
---
lib/notmuch.h | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index aa032e09..00f69846 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -892,7 +892,12 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query,
const char *tag);
*
*
Without an explicit guarantee, it's not clear how to use the reference.
---
lib/notmuch.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 247f6ad7..aa032e09 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -1400,6 +1400,8 @@ notmuch_message_get_thread_id
Dirk Van Haerenborgh for working out how long notmuch objects live.
Cheers,
rhn
[0] https://github.com/vhdirk/notmuch-rs
rhn (3):
lib: Explicitly state when replies will be destroyed
test: Check for replies obeying lifetime guarantees
docs: Use correct call to notmuch_query_search_threads in
ity of handles/data, so the implementation is free to do whatever as
long as those are not impacted.
BTW, I've submitted a patch making the guarantee explicitly stated in the docs,
see 20181217175748.10814-1-gihu@porcupinefactory.org . Reviews welcome, a
merge is even more welcome.
Cheers,
rhn
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch
On Mon, 17 Dec 2018 22:05:45 +0200
Tomi Ollila wrote:
> On Mon, Dec 17 2018, rhn wrote:
>
> > Hi,
> >
> > this patch series addresses API shortcomings that were found while working
> > on the Rust bindings [0].
> >
> > The first two patches address the
thout having
> to open the whole email file.
I'm with the others; writing a GUI client [0] I found that querying would be
much more aligned with what I need if I could search arbitrary data (headers or
notes).
Cheers,
rhn
[0] https://gitlab.com/rhn_mk1/quemail/
_