From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <robh@kernel.org>
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net
X-Spam-Level: 
X-Spam-ASN: AS2044 198.145.29.0/24
X-Spam-Status: No, score=-4.1 required=3.0 tests=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.kernel.org (mail.kernel.org [198.145.29.99])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by dcvr.yhbt.net (Postfix) with ESMTPS id 96FAB1F9FC
	for <meta@public-inbox.org>; Mon,  8 Nov 2021 20:53:38 +0000 (UTC)
Received: by mail.kernel.org (Postfix) with ESMTPSA id 229E7619E0
	for <meta@public-inbox.org>; Mon,  8 Nov 2021 20:53:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;
	s=k20201202; t=1636404818;
	bh=XntE35GqWsXAxqBX8VMdrefZRTipowWeuKXkmjsW814=;
	h=References:In-Reply-To:From:Date:Subject:To:Cc:From;
	b=PuGYsH5nZ79QT9FvKiHTIHa1LPenHUMeSgXHLEgnLz6U8pLi0+GOd/OQY3Wdn7H0I
	 zbengg7aThQ0Nhmx4TGoOysv3jU3woibto8uXI4coS3rw9mSHWVSugJTW+hcTUcU4l
	 HLYl9Xc1PIIRAShFLSwK7Uh0/G60Hhcy9bc3PF6/Nc93OKNSNT9CG4dL0nT5WbteFg
	 xoVI07SCL5UGHTxrc4b/wn+8jfYMB9JohiHa4bjdqJMlWBNXv/q1zrQzxjgm9L6mm5
	 /ageJzul8p0WakWTe7sbmbdOzA9uQBvuoXZZgLTSs0bvE9zf1XABwe71fEneA5Ra3v
	 0QiZjAgAVAWYg==
Received: by mail-ed1-f54.google.com with SMTP id g14so67097293edz.2
        for <meta@public-inbox.org>; Mon, 08 Nov 2021 12:53:38 -0800 (PST)
X-Gm-Message-State: AOAM533m576itdW5V9k8+3kabs0t1ZT2ST15juH+dba4poe6HbLTK2O6
	pEpYg99P3gm5S97to1s4eIH4/NZ/WIPy6PFxUA==
X-Google-Smtp-Source: ABdhPJwbxeK5o+Q2KZob4BfPnQ+hU4vuHm1YZ9sWDEaSLduyaMnie0VxK1WjydQONVvXN5XtTjyVZnKt2fX3yy+YTPs=
X-Received: by 2002:a17:907:3f24:: with SMTP id hq36mr2690192ejc.390.1636404815441;
 Mon, 08 Nov 2021 12:53:35 -0800 (PST)
MIME-Version: 1.0
References: <lorelei.part1.202111051304.mdtebsxahljcrxak@meerkat.local>
 <CAL_JsqJBh1O3H2-P07AHzVq0x89BoP_N6P=rT5up6=3QyF_B0Q@mail.gmail.com> <20211108202204.q5zg6bachnvbjlnx@meerkat.local>
In-Reply-To: <20211108202204.q5zg6bachnvbjlnx@meerkat.local>
From: Rob Herring <robh@kernel.org>
Date: Mon, 8 Nov 2021 14:53:23 -0600
X-Gmail-Original-Message-ID: <CAL_Jsq+XtqOEF7p5zbO2O2YdHPr61+ahPgdDhH7_XMwyuDuc2w@mail.gmail.com>
Message-ID: <CAL_Jsq+XtqOEF7p5zbO2O2YdHPr61+ahPgdDhH7_XMwyuDuc2w@mail.gmail.com>
Subject: Re: lei: incorrect quoting on saved searches (was Re: lore+lei:
 getting started)
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: meta@public-inbox.org
Content-Type: text/plain; charset="UTF-8"
List-Id: <meta.public-inbox.org>

On Mon, Nov 8, 2021 at 2:22 PM Konstantin Ryabitsev
<konstantin@linuxfoundation.org> wrote:
>
> 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.

Not even close really. That mainly finds my replies with 'diff' in
them. I'm not sure why, but it misses most actual patches:

https://lore.kernel.org/all/?q=s%3Apatch+nq%3Adiff+f%3Arobh%40kernel.org

Rob