From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E71146DE00F5 for ; Mon, 17 Dec 2018 10:06:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=5 tests=[KHOP_DYNAMIC=0.001, RDNS_DYNAMIC=0.363, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icDgPRNF-ZLk for ; Mon, 17 Dec 2018 10:06:32 -0800 (PST) Received: from porcupinefactory.org (91.218.216.54.siec.idealan.pl [91.218.216.54]) by arlo.cworth.org (Postfix) with ESMTPS id E7D406DE01CE for ; Mon, 17 Dec 2018 10:06:30 -0800 (PST) Received: from movable.Speedport_W_723V_1_46_000 (unknown [192.168.6.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by porcupinefactory.org (Postfix) with ESMTPSA id 22708675581; Mon, 17 Dec 2018 18:57:25 +0100 (CET) From: rhn To: notmuch@notmuchmail.org Cc: rhn Subject: [PATCH 0/3] API: add notes on lifetimes Date: Mon, 17 Dec 2018 17:57:45 +0000 Message-Id: <20181217175748.10814-1-gihu.rhn@porcupinefactory.org> X-Mailer: git-send-email 2.17.2 X-Mailman-Approved-At: Mon, 17 Dec 2018 10:14:16 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2018 18:06:33 -0000 Hi, this patch series addresses API shortcomings that were found while working on the Rust bindings [0]. The first two patches address the problem that the docs never clearly state when messages obtained as replies are destroyed, while the last patch fixes abroken API example. Thanks for 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 usage example lib/notmuch.h | 10 ++++- test/T720-lib-lifetime.sh | 83 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100755 test/T720-lib-lifetime.sh -- 2.17.2