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 yqpIEptKiV+7FwAA0tVLHw (envelope-from ) for ; Fri, 16 Oct 2020 07:24:11 +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 SPSrDZtKiV8dawAAbx9fmQ (envelope-from ) for ; Fri, 16 Oct 2020 07:24:11 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 D09B09400EA for ; Fri, 16 Oct 2020 07:24:09 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 05BDE2000F; Fri, 16 Oct 2020 03:24:03 -0400 (EDT) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by mail.notmuchmail.org (Postfix) with ESMTPS id EB3161FFD8 for ; Fri, 16 Oct 2020 03:24:00 -0400 (EDT) Received: by mail-wr1-x430.google.com with SMTP id e17so1486414wru.12 for ; Fri, 16 Oct 2020 00:24:00 -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=Vc3XmlMflZcx/NeDTmE8wBcmRkWl6FyAMfU9Rer2hro=; b=b+uAOsdGdAh/eSOpcDdYzPBPyDhgKQGkiKlbKpTZMX96stIVq+u4xAy1UDXA5UfTZS 0mfPVt+TGC7AARv57F1gOSfVSrhmomq9hagoTMyDC1kcwbn3lFzSR3DDIlDNNcUqEFeB nUtapC9i0YJuc2xk2OvrGRON6wL4qFLSTzaNCOSJLdvzWTQ1M62XICu5cLcsyws/m3UH p/yTzbp+HlVIXdcUnjG2VNkV1ks0hOCfJ0MNDhcWNMH8Gz4XufueKkm/nAIuetRHLcug QcKT8AERkuVtSu/AJidmvycGjXlcPRaj1UIQb4pfzyCywk6aM0YVDy8O0C9Qa2ouCNOz DdpQ== 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=Vc3XmlMflZcx/NeDTmE8wBcmRkWl6FyAMfU9Rer2hro=; b=eN+n578u2sLc0qCr79+AiD/WeGHpz4RBSi18C5thP6v08ykvhPEnMwKGDIWjnw1HsB Ky7W7/UY8RRkNqCaeZpFn6n6X0FhD+QtAxcAQFj87ButjdTKqSESIgroxWBf5+HbZx/l Xmho9T1+N1MjdRmzcV+c5ppJJVOkrZHZYqV92aCxwyI+k3YQBAHto4tGRyrrAdHiI5nh p8I/ZcKXIPIMOrcreAMrNtJKxJ09fl1K3BPwa2OGl7C0pWi5rC+KkITOJfO/O3LQ1k+g m6V2oChJKdKQHKwAwJ/PTR8u5W1voSxGDU5TV47Io/eQUCjfir3Tq1aHewUTzQvlTzp4 DPDQ== X-Gm-Message-State: AOAM5303/aW8NCP9Bb41IT8R4D/3NR6ZasaqEMzSL7wXrCx6GLqQnlA/ DPuqEEhMLue18U3zg+6EIxK0qW3pj4ldqWopi88iJg== X-Google-Smtp-Source: ABdhPJyDpOsBtZI1nhfQdfLU3HWIgW8512E0uejzq17IhVDq23TM5TXN1nPqjXTSXjFemx+ji8MMKqWdL22ZpQgWyhg= X-Received: by 2002:adf:c045:: with SMTP id c5mr2201636wrf.405.1602833033053; Fri, 16 Oct 2020 00:23:53 -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: From: Gaute Hope Date: Fri, 16 Oct 2020 09:24:44 +0200 Message-ID: Subject: Re: Python3 cffi bindings To: Floris Bruynooghe Message-ID-Hash: TUAPWFOBJ3AQKO5GMJ5I2LQMBMLGYM56 X-Message-ID-Hash: TUAPWFOBJ3AQKO5GMJ5I2LQMBMLGYM56 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="===============6496134651332531175==" 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=b+uAOsdG; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 2.53 X-TUID: yTo3hm+WPQHg --===============6496134651332531175== Content-Type: multipart/alternative; boundary="00000000000091dff105b1c4a5e8" --00000000000091dff105b1c4a5e8 Content-Type: text/plain; charset="UTF-8" On Fri, Oct 16, 2020 at 9:19 AM Gaute Hope wrote: > 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). > > Re-read the rest of the old thread, and I think you are right that I only need to use `db.get_path()` to do what I need. So that makes this issue less critical for me I guess. -- gaute --00000000000091dff105b1c4a5e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 16, 2020 at 9:19 AM Gaute Hop= e <eg@gaute.vetsj.com> wrot= e:
On Wed, Oct 14, 2020 at 10:= 24 PM Floris Bruynooghe <flub@devork.be> 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.=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 (ht= tps://github.com/gauteh/lieer/blob/master/lieer/gmailieer.py#L315).


Re-read the r= est of the old thread, and I think you are right that I only need to use `d= b.get_path()` to do what I need. So that makes this issue less critical for= me I guess.=C2=A0

-- gaute
--00000000000091dff105b1c4a5e8-- --===============6496134651332531175== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6496134651332531175==--