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 45C0C6DE0193 for ; Sat, 15 Dec 2018 23:43:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.394 X-Spam-Level: X-Spam-Status: No, score=-0.394 tagged_above=-999 required=5 tests=[AWL=-0.194, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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 Het8JyBx4fik for ; Sat, 15 Dec 2018 23:43:37 -0800 (PST) Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) by arlo.cworth.org (Postfix) with ESMTPS id 105FE6DE0191 for ; Sat, 15 Dec 2018 23:43:37 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id n7so3428163uao.7 for ; Sat, 15 Dec 2018 23:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=k6R8iP76khTF0tis82Hg5NyGX481+4FUkmCa7yu4lU8=; b=euIj1POte4ZGQhCho4QtT/ivkGAT/bLWRvMmQlQN8MKZDV5PHlIo6KA17NyGzqu7+H WSDKJ1b2GJBdR1FkyzpMWk4Bcb1kcoW+ByXXWhsXs/y2xDFZtgScGNWjZUC97Y69cst6 hYZ4kKlUPE9LEVWkVfxDSHyVdptSnobvOtHUfFc0LgNr/Ugr9gMs3en+8BgQ+St9exYS zwJzLYdt5ufWL8Rt0FUQ3fhccQkQF451Ffy62bqG15cUaf9/824NEuvXN5gDDqCAg8Ap soY+UmzhZm6BGRow2FdTJ/EPFWHMPMGa+QQUXXeiDi02W9Pr9wnBDXdTJJ7WHDKH5h4A 8sTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=k6R8iP76khTF0tis82Hg5NyGX481+4FUkmCa7yu4lU8=; b=EWSW/xzym+/yK58sQbdt/C9i0Mql8MfR2n2evQSbhXOG56CTvSzqbOLs2j/C76LlWe cbmExJuz1S7p2lTGJDIJ33G7HXMlLIDlY/osIYeB+F5rgiYkpl9NCrzQdYOg+bxeokM3 lVpkBDmD+OoNO62N11Xs7Wbh4arClx1/BAR6MIMifMkTgEL6LzHAZ1GH+ltdE2kVyHHQ qISqMDvxueiOrgBaF2+gpwS4DSNBBNsH7DVZQeR+AhtTOyToihTLcObwMnvHFtpIHfe8 JbuWVPCNcdzxKPtof/EXbDOmluvqp9u5rv2SEK/Dz2WjTdA/4hrWeK9DNPnfxbM/CitH QlRQ== X-Gm-Message-State: AA+aEWaasUpZ1Zf1+Rvjh6Z/vLMTFEcfvwYA4Xrkty1eeANVzSLn96/z mWWOTKLF2rZ2RVXOHHUvH8L1UuPO0TYAbGkttYicsa/GG4s= X-Google-Smtp-Source: AFSGD/XWUX+OZvigEJXtzCXRHDdpieshyuGYOM1fuZdCkqGmj8R5K2CQfaF13d0db971CB7HnvxcaDEi6a+M+yYPubE= X-Received: by 2002:a9f:35f1:: with SMTP id u46mr4451779uad.136.1544946215365; Sat, 15 Dec 2018 23:43:35 -0800 (PST) MIME-Version: 1.0 From: Dirk Van Haerenborgh Date: Sun, 16 Dec 2018 08:42:59 +0100 Message-ID: Subject: Pointer ownership To: notmuch@notmuchmail.org Content-Type: multipart/alternative; boundary="0000000000005d3257057d1ed2e9" 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: Sun, 16 Dec 2018 07:43:39 -0000 --0000000000005d3257057d1ed2e9 Content-Type: text/plain; charset="UTF-8" Hi all, I'm the main author for these notmuch rust bindings: https://github.com/vhdirk/notmuch-rs In making these bindings safe, it's very important to understand when memory is reclaimed by notmuch (and when not). And I'm having a hard time deducing that from the documentation. I've built a couple of c test routines, but I'm getting none the wiser from that. For instance, when iterating messages from a thread: Can one still use a notmuch_message_t* when the thread is destroyed? Are the individual messages 'owned' by the thread, or only by the query? Same question for 'replies'. Could someone please shed some light on this? I'd very much appreciate it. Kind regards -Dirk --0000000000005d3257057d1ed2e9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I'm the ma= in author for these notmuch rust bindings:=C2=A0https://github.com/vhdirk/notmuch-rs
In making= these bindings safe, it's very important to understand when memory is = reclaimed by notmuch (and when not). And I'm having a hard time deducin= g that from the documentation. I've built a couple of c test routines, = but I'm getting none the wiser from that.

For instance, w= hen iterating messages from a thread: Can one still use a notmuch_message_t= * when the thread is destroyed? Are the individual messages 'owned'= by the thread, or only by the query? Same question for 'replies'.<= /div>

Could someone please shed some light on this? I= 9;d very much appreciate it.

Kind regards
-Dirk=C2=A0


--0000000000005d3257057d1ed2e9--