From: Rob Herring <robh@kernel.org>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
workflows@vger.kernel.org
Subject: Re: lore+lei: getting started
Date: Mon, 7 Mar 2022 10:48:28 -0600 [thread overview]
Message-ID: <CAL_Jsq+gozKWtx_FLZf=peA=odAssF5uxUZOpn_hmHYPt3pz0A@mail.gmail.com> (raw)
In-Reply-To: <lorelei.part1.202111051304.mdtebsxahljcrxak@meerkat.local>
On Fri, Nov 5, 2021 at 12:07 PM Konstantin Ryabitsev
<konstantin@linuxfoundation.org> wrote:
>
> Hello, all:
>
> I am going to post a series of articles about public inbox's new lei tool
> (stands for "local email interface", but is clearly a "lorelei" joke :)). In
> addition to being available here on the workflows list, they will also be
> posted on my people.kernel.org blog.
I also wanted to do non-persistent searches. Essentially, the lore web
interface search box on the command line. lei can do this with the
right options and some avoidance of shell escaping. The shell script
below is what I came up with.
Note I have the stable exclusion added because subject searches with
'get the whole thread' enabled often picks up Greg's 100+ patch
series.
Rob
8<------------------------------------------------------------------
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only
usage()
{
echo "syntax: `basename $0` [-t] <query string>"
echo ""
echo "For query syntax, see https://lore.kernel.org/all/_/text/help/"
exit 1
}
while getopts "ht" opt
do
case "$opt" in
t) threads="-t";;
[h?]) usage;;
esac
done
shift $((OPTIND-1))
query_str="$*"
[ -z "$query_str" ] && usage
tmp_mbox=$(mktemp)
echo "$query_str" NOT tc:stable@vger.kernel.org | \
lei q --no-save --dedupe=mid -f mboxrd -O
https://lore.kernel.org/all/ -o $tmp_mbox --stdin
if [ -s "$tmp_mbox" ]; then
mutt -f $tmp_mbox
fi
rm $tmp_mbox
prev parent reply other threads:[~2022-03-07 16:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 17:07 Konstantin Ryabitsev
2021-11-08 2:17 ` Randy Dunlap
2021-11-08 19:49 ` Rob Herring
[not found] ` <20211108202204.q5zg6bachnvbjlnx@meerkat.local>
2021-11-08 20:49 ` lei: incorrect quoting on saved searches (was Re: lore+lei: getting started) Eric Wong
2021-11-08 21:36 ` Konstantin Ryabitsev
2021-11-08 21:48 ` Eric Wong
2021-11-08 22:36 ` Konstantin Ryabitsev
2021-11-08 22:57 ` Eric Wong
2022-01-10 19:40 ` lore+lei: getting started Bjorn Helgaas
2022-01-11 1:52 ` Kyle Meyer
2022-03-07 16:48 ` Rob Herring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL_Jsq+gozKWtx_FLZf=peA=odAssF5uxUZOpn_hmHYPt3pz0A@mail.gmail.com' \
--to=robh@kernel.org \
--cc=konstantin@linuxfoundation.org \
--cc=workflows@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox