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 wIS/KFxJiV8NFgAA0tVLHw (envelope-from ) for ; Fri, 16 Oct 2020 07:18:52 +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 0VpoJFxJiV9BbwAAbx9fmQ (envelope-from ) for ; Fri, 16 Oct 2020 07:18:52 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1CBEC9402A7 for ; Fri, 16 Oct 2020 07:18:50 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1B2F120001; Fri, 16 Oct 2020 03:18:38 -0400 (EDT) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by mail.notmuchmail.org (Postfix) with ESMTPS id 944091FFA4 for ; Fri, 16 Oct 2020 03:18:35 -0400 (EDT) Received: by mail-wr1-x42e.google.com with SMTP id i1so1539747wro.1 for ; Fri, 16 Oct 2020 00:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iMdFAWayzUVpqIkDXa6L4htQvV3AmZETFa7e5U8TRuo=; b=T/ejPcBtSIGP1WJ8a9ueJbcMOtuRTUku39+2YNwkUtTNIaTq0yTmDIYwBArGbH12yD Zocy8Oua4PXffYQiz4qtfAKApI+iw+PYDAMWOq0oIKoBCsr2G17PCwsSQB4Q2yEs//D5 R8O5QbjBe68w1PYjUHfoEQmwfxvLoL0gqjJEp8lXcw61rPD1Hw6g4St7N9eShEPmuJhk eAUElNU/7feb91k9meg7B7rxgr5bX9wcggYsee7P9NO5Wj7cNWVDV1YJs+VxZuqGdfFW 6yje3s/s0XFS/QMF8KiFWx7X6dMn2y8cWuFzciPLNya1iASUNb5ysmG8lbgZwcG28UhO lG1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iMdFAWayzUVpqIkDXa6L4htQvV3AmZETFa7e5U8TRuo=; b=o429M+15aNCi8X/tb1PZBwv+DiSPyfvwKsx9OoEhY0FuWIa9l5bw1wrhcvADa6KOdj fFQOsCneJmqLoudfM916Kkk8VXPFPPVJBRFzzzjJfT4MVhzYpLN4fuXay5PUk9WowFDy s7EjEDRvKlmVR0wodndl1HXlKmP4zc41zrZeqM4q5hpBsuxe/HBvp40RNpG3fm0YIbGI dL3ijM2lsReAmysaKdzUGGSLUZm0vcX0fwTOaqdRA+Fxmp+Xdzi478xoSo/63NKdaeiC EP9ASqF+tc/lC6rvzSc0aM7OYVO02JAQ0oJIqwo13/E7sE/j2o6fDUutl/LTywtNtA2v AyOA== X-Gm-Message-State: AOAM5339AKFJ8iWC0aBYrPdveMf8xoADVg4wTy0uznI1QSSuGsIdLJNd ktL1vU8X4utJ5EtFLUJMf/AIWK8rX4jagNOExch11Q== X-Google-Smtp-Source: ABdhPJweEWAFnnjIfVupwAuGbzsdeijeqshM23q4Tg5w6JTCmsh2GkS0CKl8T9TRYFa2K/kBAZEIQipoPQXn43vnh7Q= X-Received: by 2002:adf:c3c2:: with SMTP id d2mr2292607wrg.191.1602832709123; Fri, 16 Oct 2020 00:18:29 -0700 (PDT) MIME-Version: 1.0 References: <20191008210312.20685-1-flub@devork.be> <87y2wepgq8.fsf@powell.devork.be> <87r1q0d09v.fsf@powell.devork.be> In-Reply-To: <87r1q0d09v.fsf@powell.devork.be> From: Gaute Hope Date: Fri, 16 Oct 2020 09:19:20 +0200 Message-ID: Subject: Re: Python3 cffi bindings To: Floris Bruynooghe Message-ID-Hash: EQ4GDHRIIQOMHX5HL4WGXQ5LJDR2YQHO X-Message-ID-Hash: EQ4GDHRIIQOMHX5HL4WGXQ5LJDR2YQHO X-MailFrom: eg@gaute.vetsj.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: notmuch X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7982118811431727798==" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gaute-vetsj-com.20150623.gappssmtp.com header.s=20150623 header.b=T/ejPcBt; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 2.53 X-TUID: /MJ0yUHgSD/D --===============7982118811431727798== Content-Type: multipart/alternative; boundary="000000000000431fa405b1c4920e" --000000000000431fa405b1c4920e Content-Type: text/plain; charset="UTF-8" On Wed, Oct 14, 2020 at 10:24 PM Floris Bruynooghe wrote: > Hi Gaute, > > On Thu 08 Oct 2020 at 10:13 +0200, Gaute Hope wrote: > > I made another attempt at porting lieer to notmuch2, but I am missing the > > get_directory method still. Any plans to look at it? > > Would indeed be good to add this sometime. I'm still curious to how you > use it though to make sure we make a good API. I only found > > https://github.com/gauteh/lieer/blob/394d8c1a574fd57e63390e92a6e73363808ebac5/lieer/local.py#L280 > and it seems you only use the `.path` attribute. Is this correct or did > I miss anything? > That is correct, as well as relying on an exception if the input directory is not in the notmuch database. I also use `db.get_path()` to figure out the relative path w.r.t to the database root, for use in `path:` queries ( https://github.com/gauteh/lieer/blob/master/lieer/gmailieer.py#L315). Regards, Gaute --000000000000431fa405b1c4920e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Oct 14, 2020 at 10:24 PM Floris B= ruynooghe <flub@devork.be> wrot= e:
Hi Gaute,

On Thu 08 Oct 2020 at 10:13 +0200, Gaute Hope wrote:
> I made another attempt at porting lieer to notmuch2, but I am missing = the
> get_directory method still. Any plans to look at it?

Would indeed be good to add this sometime.=C2=A0 I'm still curious to h= ow you
use it though to make sure we make a good API.=C2=A0 I only found
htt= ps://github.com/gauteh/lieer/blob/394d8c1a574fd57e63390e92a6e73363808ebac5/= lieer/local.py#L280
and it seems you only use the `.path` attribute.=C2=A0 Is this correct or d= id
I miss anything?

That is correct, as we= ll as relying on an exception if the input directory is not in the notmuch = database. I also use `db.get_path()` to figure out the relative path w.r.t = to the database root, for use in `path:` queries (https://github.com/g= auteh/lieer/blob/master/lieer/gmailieer.py#L315).

<= div>Regards, Gaute
--000000000000431fa405b1c4920e-- --===============7982118811431727798== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7982118811431727798==--