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.9 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-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (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 82CEA1F953 for ; Mon, 8 Nov 2021 20:22:07 +0000 (UTC) Received: by mail-qk1-x732.google.com with SMTP id bm28so16686541qkb.9 for ; Mon, 08 Nov 2021 12:22:07 -0800 (PST) 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=wdFTSie5B3ssJnCgcZoRd9/SD+hymzGgdO5wUmwmdCU=; b=F9WrxVdLOiwQOdNf6zd23HGBf9aGc+2E4Rbb8slCaJAv65nMTsSZo41V96laIa+HBy aMvMbShrFbHJ6OOKssZsQdFxuS+YJ3NvknX4Ia1kNQwHY2ZcILTi1jo8+klO/MVOpHmp LeDxf2vZ3GZEdPTLqPDZHABUQx1PgQyUQPBEo= 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=wdFTSie5B3ssJnCgcZoRd9/SD+hymzGgdO5wUmwmdCU=; b=Spyut4OP6DWAvQ5FQM6sUh1dkbZZV/6QMieyGrvvKW8Unpc+vGBrUtwxtLwPAxXhHP ophZwVfJI++DzegZTJ+GOqTcsG6iMPpelCCoL/84t8mw0yw+oEZ/Ol4fmtpaRGmo3yg5 EbHCIFrWy+WoOnuFpjWdEEC/NOg/R3xJ1Uz1VAZHSJwVnoeNH732oqUzdl62qeRf7nZD TnwplfoxmhcvT8yfFh23xFq3OwesK6bqYM6hB8cPjs2P9wPI5L8vMwImnnjkfx64rA3g sR5f8rSvKFO+ErYBgK9Zo+Z+4tislncv1heXpfv1GLQoTiKhfxR9N/igSmEXAwZT2/3G Lidg== X-Gm-Message-State: AOAM53081virNR3YLIZTnswfeax3SNLu3rcVw2mywB8By+66viFDz1i4 YKrPQA70qPGn13pxUbQvBLeOXg== X-Google-Smtp-Source: ABdhPJxmanqPjTVwtew7SwCW1QgMumQE/ZMhj0AVusrteA8EnHbWbqZjUmm2r98GLZlCtSKfCy/+Og== X-Received: by 2002:a05:620a:248f:: with SMTP id i15mr1522936qkn.23.1636402926349; Mon, 08 Nov 2021 12:22:06 -0800 (PST) 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 n13sm7370857qkh.34.2021.11.08.12.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 12:22:05 -0800 (PST) Date: Mon, 8 Nov 2021 15:22:04 -0500 From: Konstantin Ryabitsev To: Rob Herring Cc: meta@public-inbox.org Subject: lei: incorrect quoting on saved searches (was Re: lore+lei: getting started) Message-ID: <20211108202204.q5zg6bachnvbjlnx@meerkat.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: On Mon, Nov 08, 2021 at 01:49:07PM -0600, Rob Herring wrote: Moving this to meta. > > lei q -I https://lore.kernel.org/all/ -o ~/Mail/floppy \ > > --threads --dedupe=mid \ > > '(dfn:drivers/block/floppy.c OR dfhh:floppy_* OR s:floppy \ > > OR ((nq:bug OR nq:regression) AND nq:floppy)) \ > > AND rt:1.month.ago..' > > I tried a similar one which I had working as a bookmark: > > $ lei q -I https://lore.kernel.org/all/ -o ~/Mail/my-patches > --threads --dedupe=mid '(dfn:drivers OR dfn:arch OR dfn:Documentation > OR dfn:include OR dfn:scripts) AND f:robh@kernel.org' > # /home/rob/.local/share/lei/store 0/0 > # /usr/bin/curl -Sf -s -d '' > https://lore.kernel.org/all/?x=m&t=1&q=(dfn%3A%22drivers+OR+dfn%3Aarch+OR+dfn%3ADocumentation+OR+dfn%3Ainclude+OR+dfn%3Ascripts)+AND+f%3Arobh%40kernel.org%22 > # 0 written to /home/rob/Mail/my-patches/ (0 matches) It's true, I get the same thing if I omit "AND rt:" at the end. $ lei q -I https://lore.kernel.org/all/ -o ~/work/temp/lei/robh-patches --threads --dedupe=mid '(dfn:drivers OR dfn:arch OR dfn:Documentation OR dfn:include OR dfn:scripts) AND f:robh@kernel.org' # /home/user/.local/share/lei/store 0/0 # /usr/bin/curl -Sf -s -d '' https://lore.kernel.org/all/?x=m&t=1&q=(dfn%3A%22drivers+OR+dfn%3Aarch+OR+dfn%3ADocumentation+OR+dfn%3Ainclude+OR+dfn%3Ascripts)+AND+f%3Arobh%40kernel.org%22 # 0 written to /home/user/work/temp/lei/robh-patches/ (0 matches) $ lei forget-search ~/work/temp/lei/robh-patches $ lei q -I https://lore.kernel.org/all/ -o ~/work/temp/lei/robh-patches --threads --dedupe=mid '(dfn:drivers OR dfn:arch OR dfn:Documentation OR dfn:include OR dfn:scripts) AND f:robh@kernel.org AND rt:1.month.ago..' # /usr/bin/curl -Sf -s -d '' https://lore.kernel.org/all/?x=m&t=1&q=(dfn%3Adrivers+OR+dfn%3Aarch+OR+dfn%3ADocumentation+OR+dfn%3Ainclude+OR+dfn%3Ascripts)+AND+f%3Arobh%40kernel.org+AND+rt%3A1633724105.. # /home/user/.local/share/lei/store 13/13 # https://lore.kernel.org/all/ 65/? # https://lore.kernel.org/all/ 75/75 # 45 written to /home/user/work/temp/lei/robh-patches/ (88 matches) > It seems there is some problem in quoting. Notice the '%22' that's > inserted in the url. Deferring to Eric here. > Also, the above query is a bit of a work-around as what I really want > is just all patches from me. I haven't been able to get something to > work. I've tried things like 'dfn:*' or 'dfn:/' or 'dfn:b/'. I think 's:patch AND nq:diff' is a good option here. -K