From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uAJEKWaA5l4IBgAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 19:54:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OLUfJWaA5l67TAAAbx9fmQ (envelope-from ) for ; Sun, 14 Jun 2020 19:54:14 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 227F79400B1 for ; Sun, 14 Jun 2020 19:54:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id F40FC6DE0ED9; Sun, 14 Jun 2020 12:54:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org 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 F3DlQ_Sg0AN8; Sun, 14 Jun 2020 12:54:04 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id C333B6DE0F07; Sun, 14 Jun 2020 12:54:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 08F696DE0F07 for ; Sun, 14 Jun 2020 12:54:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org 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 ZB14pyr7muwG for ; Sun, 14 Jun 2020 12:54:01 -0700 (PDT) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by arlo.cworth.org (Postfix) with ESMTPS id 0A6A26DE0ED9 for ; Sun, 14 Jun 2020 12:54:01 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id l10so14938794wrr.10 for ; Sun, 14 Jun 2020 12:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version; bh=hkT2zX7NuC+OlkPSknbA8cQgvS8KBuu6BWc9w/fY7o0=; b=e2hxqNbcYarD9IyH7GIcLPsKIVZKEx+OKGLCh2CFXNM6quKbe75kXNrwb6ZpJmn6kF ehh2mMjnv/22fffI+wSYHG8gHxGDsp4n/Fv0YbhN38Uv9CdSCCOl4iNPgmMpTwOHA7Ud jbVO1TE0eEwnHwZXy9bmlYWSlrggqNeERpA83oWMeFGZASeYzO2TKQG9LBYiQwpewTNy Xpz33nhnifFFbobSPOdtDImKnNaDfv3wuNWD3nSWq8vhzS+TOO9XHPB5kk4SeimfsKhB poDxEvwRdAgrPtiEYcIG6DrTA+tAXK3Ojold16OaqPHUfNhCXhIE7aDz8C52mJuVWP9G MaqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :date:message-id:mime-version; bh=hkT2zX7NuC+OlkPSknbA8cQgvS8KBuu6BWc9w/fY7o0=; b=rrTz3ZRbQv+luLvbpjdZ+FamQ733Mq7UJO+fwko1DWXmszSTXKiJB4ePXc6WSKz3U/ 7jq3vwllk7Om8lN+ywqdSrMTL3Ws3yNMV/KycTU8mM/t2/dk6XVg+MSewFJ0z+lypJkS T2LkBvrwy+broNkWbcVByi6Voq8P7+zNMcUDZeL0a66Q6cVlTIfgvQedFB1WbBg3s7Jz dmk4ks3IHIkaILlASDr9Dw/N4IQGjcogRyGOKx1FJiG9TWshyiaxLlGy0JBs0nle5s5G mJ9lbbaRFpNoHpQXsGcXkraFKzXLVO6c6BYeXAp7zNjcSIRcUlqzMUU+oVF/+Y4IKu2+ 0RmQ== X-Gm-Message-State: AOAM531Os6A34CG2hNjEXysA6nNZezxzax8ITqGpMkOCcxxaznwb8typ cAvsKtJ2yWUAQfBXQ6ja7BV9ygpf X-Google-Smtp-Source: ABdhPJwR7DCgTRruAwdS6O8yl9QjRdgEDUfCu+hwmMrP7YBwaW4nTpaDCLAju6wtIHw1mCzkYY9WlQ== X-Received: by 2002:a5d:5006:: with SMTP id e6mr26702994wrt.170.1592164439184; Sun, 14 Jun 2020 12:53:59 -0700 (PDT) Received: from powell.devork.be (2a02-8388-8480-1180-4c18-fc69-8d8c-22b5.cable.dynamic.v6.surfer.at. [2a02:8388:8480:1180:4c18:fc69:8d8c:22b5]) by smtp.gmail.com with ESMTPSA id 50sm22747969wra.1.2020.06.14.12.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 12:53:58 -0700 (PDT) Received: (nullmailer pid 166684 invoked by uid 1000); Sun, 14 Jun 2020 19:53:57 -0000 From: Floris Bruynooghe To: Daniel Kahn Gillmor , Notmuch Mail Subject: Re: difficulties with notmuch2 python bindings for alot In-Reply-To: <87sgf4xtpl.fsf@fifthhorseman.net> References: <87sgf4xtpl.fsf@fifthhorseman.net> Date: Sun, 14 Jun 2020 21:53:57 +0200 Message-ID: <877dw91l0q.fsf@powell.devork.be> MIME-Version: 1.0 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=e2hxqNbc; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -0.01 X-TUID: YkxGjz/hNKdP Hi Daniel, On Tue 09 Jun 2020 at 09:19 -0400, Daniel Kahn Gillmor wrote: > I see over on github that alot is trying to port to the notmuch2 > bindings, and having a few problems with it: > > https://github.com/pazz/alot/pull/1511 > > alot is an important consumer of the notmuch python bindings, and it > would be really great to see them successfully transition to the > notmuch2 module. > > Floris, if you (or anyone else with this particular knowledge) has a > chance to take a look and help them sort out the remaining issues, that > would be much appreciated! Thanks for the pointer, I've pinged the issue offering help with the bindings and had a look through the existing things they discussed. One thing that they encountered and don't yet understand is that they reported issues with leaking filedescriptors. They used the bindings in a way where I expect it to only call notmuch_database_destroy() when they are done with it. From reading notmuch.h I think that's correct and there's no need to call notmuch_database_close() first. Yet someone reported that explicitly calling close helped. Is the assumption I made of only calling destroy correct? Cheers, Floris