From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B68291F8C8 for ; Tue, 14 Sep 2021 21:05:50 +0000 (UTC) Received: by mail-qk1-x729.google.com with SMTP id bk29so1016653qkb.8 for ; Tue, 14 Sep 2021 14:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tDzlKKuiWvyfeVkhXnIYvXwsYN9bPPwL4iLJKBq4aXU=; b=Sy/q37RRl0tSA555OrTw3iAIQSaNcAEP5ir6vGe9VcZmtswDCetw44TTQbAK/Qd8RZ AbKtHJ2RIYpIet0UKMzvwAzxKHdgyfsmNVMHp034cjQMgaOyUngK//CC+rqstxXGk1dh Iw13eXf6CohruJ6e9dTGJBii+tElw4QPjQqiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tDzlKKuiWvyfeVkhXnIYvXwsYN9bPPwL4iLJKBq4aXU=; b=PYJ4yicJHm+wnNGlJgqoT9zhwXflPv73f8VPMA8EPVWoclKn5FtKWVwX7ZiL3MUKK2 g60LbSu+6oNuvAuAVImFRT9Qi2EjhvHZ8Kc/bBcodKux32vp0O/wxK5ZsnyJHPJ9hORM X+VmW/7krOkl7jdGzuCgzMFb9RoB2w7SAfQOFnFu4sRb0Y1wheO5BAP+yFldbBUs84Ut F5H3fvwPftTD71aSLps8WeI3UiGr7nj988+qjqswwR6VGIHarzeSYlsxIHqdbu3YxmTY oJEtSnq9flp52RxcRpZchGYDLSFcnegoW5LdRd3aYPo5ERJc0e4/7fXRUFwlyWlw4Hph hOiA== X-Gm-Message-State: AOAM532+Mj+Oxlt8tMC/VVYn0YBAxi5Gm2wnjN3mjxBQtYpAgxFPhGUH sIayHrnrrD4+Hy6tHf4KfLNZcA== X-Google-Smtp-Source: ABdhPJwUb0DDTeIKt478ARnAPNEC4FaxCzZR752e75+rr+SmURWwvVhOJavRk9d9I0Jgb8CC8DQaPw== X-Received: by 2002:a37:a442:: with SMTP id n63mr7033558qke.302.1631653549392; Tue, 14 Sep 2021 14:05:49 -0700 (PDT) Received: from meerkat.local (bras-base-mtrlpq5031w-grc-32-216-209-220-181.dsl.bell.ca. [216.209.220.181]) by smtp.gmail.com with ESMTPSA id b7sm6714426qtt.12.2021.09.14.14.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 14:05:49 -0700 (PDT) Date: Tue, 14 Sep 2021 17:05:47 -0400 From: Konstantin Ryabitsev To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH] uri_imap: handle '/' as an IMAP hierarchy separator Message-ID: <20210914210547.akdp4cqmwaheayp5@meerkat.local> References: <20210914175025.eq7s2shkc323itaf@meerkat.local> <20210914193528.29676-1-e@80x24.org> <20210914195510.kozlchcwvgrng5uc@meerkat.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210914195510.kozlchcwvgrng5uc@meerkat.local> List-Id: On Tue, Sep 14, 2021 at 03:55:10PM -0400, Konstantin Ryabitsev wrote: > On Tue, Sep 14, 2021 at 07:35:28PM +0000, Eric Wong wrote: > > > I found an interesting problem using lei with imaps:// folders. I'm trying > > > things out with migadu, and the folder paths use '/' separators, so a full > > > IMAPS folder path for a folder "lore/mentions" is > > > imaps://imap.migadu.com/lore/mentions. However, if I configure lei-q to use > > > that remote path, everything actually ends up in the folder > > > imap.migadu.com/lore (not the "mentions" subfolder). > > > > Oops, I think the patch below should fix it. > > Yep, that worked. Thanks! I think I found a couple of other bugs while testing this with migadu. E.g.: $ export MFOLDER=imaps://imap.migadu.com/lore/b4 $ lei q -o $MFOLDER -I https://lore.kernel.org/all/ '(s:b4 OR nq:b4 OR dfn:b4) AND rt:1.week.ago..' # /usr/bin/curl -Sf -s -d '' https://lore.kernel.org/all/?q=(s%3Ab4+OR+nq%3Ab4+OR+dfn%3Ab4)+AND+rt%3A1631066349..&x=m # /home/user/.local/share/lei/store 54/54 So far so good, but then: 2021-09-14T20:59:12Z 20428 20428 die: BUG: imaps://imap.migadu.com/lore/b4;UIDVALIDITY=1621977334 has no UIDVALIDITY at /usr/local/share/perl/5.32.1/PublicInbox/LeiStore.pm line 313. (from nowait set_sync_info) # https://lore.kernel.org/all/ 19/? # https://lore.kernel.org/all/ 25/? # https://lore.kernel.org/all/ 51/? # https://lore.kernel.org/all/ 54/54 # 54 written to imaps://imap.migadu.com/lore/b4 (108 matches) However, it doesn't show up in ls-search: $ lei ls-search /home/user/work/temp/lei/lockdown /home/user/work/temp/lei/mentions That would appear to be due to them being saved in the lore/ subdir: $ find .local/share/lei/saved-searches/ -type d .local/share/lei/saved-searches/ .local/share/lei/saved-searches/lockdown-1804cfad691a409f55598a8528566d5f1539b2632e1db7e206cb147396582631 .local/share/lei/saved-searches/mentions-f467d0a01dfdc3e42523b5d0d090773269e199a6a109b0713dc48142f0e30526 .local/share/lei/saved-searches/lore .local/share/lei/saved-searches/lore/mentions-e9ca065affe84b4e4637620c72b64b09970a02b83171ba75c86afff95489d392 .local/share/lei/saved-searches/lore/b4-4811ca1722c2c2817e8cdc6a8d390f63a3b723c3c991f0267425d380aa1c8add Cheers, -K