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-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 C376C1F8C8 for ; Tue, 14 Sep 2021 19:55:13 +0000 (UTC) Received: by mail-qk1-x736.google.com with SMTP id m21so723546qkm.13 for ; Tue, 14 Sep 2021 12:55:13 -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=76+k7ybvgfSsC3AYwdgrABwDqeqv2YmX6+MlPREaqnA=; b=QYB9T+8EPCfvMXAbpQ4AS/H5kJRcgHOemQJlDqacdPvHUgt/osiMVrSsioIXAaW3O6 x1cFcCtJvGY/uZJOr7H9ShtCw4UgNnA02CWP8pdqYCHxbdKYnwAfvDiwcvNeYBU5mhix mPujDnxIRKAFCc4K9+6kK7HBRnJ373MIkeZP8= 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=76+k7ybvgfSsC3AYwdgrABwDqeqv2YmX6+MlPREaqnA=; b=yoiSJT/YYkGgPGCau6027BTazuInRvBB8VKI/WPhgbEp/nHmarpmNs1r8AJ9I6JcqX ceU3vf4V4GHOXDWbhhncUpwZe8YncRsXKBKH+Z/sOnpfcVfz6c7kW2BaVOchJueg8AQ9 8tCzcQrRJPLy35MnTlcXmpuqOQ58d1hzhx4RoaBrAbeZHMk07XMzJOUHLsyqGWQNepbi hMWbW+kCY3AVyKQ/vDCIhsqX+5JroG3r69fKWV1/omD9+hNXBhFfH/jvKsCWepcXQ2eR bO/MGBdo9uu8XH10MHrBju6fwgfQhe8BOiXThPPkmDsjDS1Poy6bSBC/MDIBJz6/wSBA zQiA== X-Gm-Message-State: AOAM533bYNZCXkzG2xt4wg6aiubDmbg+bAc/MSxGvB9NeoPMh0wK3hYp 0VGD4BFRLXJK3eCBW1+0BUf5rA== X-Google-Smtp-Source: ABdhPJxaK4WREu6twbfz8KmWsuBF5MeCIcIFMrGbQMrmaKdTQ22ZOKDu24eQNTpgClWbOH/9iFJv1A== X-Received: by 2002:a37:9581:: with SMTP id x123mr6591076qkd.477.1631649312566; Tue, 14 Sep 2021 12:55:12 -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 z6sm6603484qtq.78.2021.09.14.12.55.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Sep 2021 12:55:12 -0700 (PDT) Date: Tue, 14 Sep 2021 15:55:10 -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: <20210914195510.kozlchcwvgrng5uc@meerkat.local> References: <20210914175025.eq7s2shkc323itaf@meerkat.local> <20210914193528.29676-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210914193528.29676-1-e@80x24.org> List-Id: 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! > Btw, if you encounter more IMAP problems, I've found adding > "-c imap.debug -c imap.compress=0" to the command-line useful > (Mail::IMAPClient dumps the raw compressed traffic, so I need to > disable compression). Good to know, thanks. Quick follow-up -- documentation says that .netrc should work, but I've found that even though I have the following entries in ~/.netrc, I still get prompted for credentials: machine imap.migadu.com login konstantin.ryabitsev@linux.dev password [...] The credential helper works after the initial "lei up" but I'm curious why .netrc isn't happy. Not a huge deal, seeing as that requires storing passwords in plaintext. -K