GROK-PI-PIPER(1)

πŸ“¦
version 2.0.12 Β· 2 versions
  • 2.0.12 Β· debian trixie, epel 9, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 2.0.12 Β· ubuntu stonking
, in debian trixie, epel 9, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– GROK-PI-PIPER πŸ’–

okay bestie, so this is a section 1 manual page for grok-pi-piper, and it is genuinely one of the most useful little hook scripts ever, no cap.


✨ NAME ✨

GROK-PI-PIPER β€” a hook script for piping new messages from public-inbox repos πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

grok-pi-piper [-h] [-v] [-d] -c CONFIG [-l PIPELAST] [--version] repo

🌸 DESCRIPTION 🌸

So here's the vibe: this is a ready-made hook script that you can call from pull.post_update_hook when you're mirroring public-inbox repositories. What does it do? It pipes all newly received messages to arbitrary commands that you define in the config file. iconic behaviour, honestly.

The simplest configuration for lore.kernel.org is literally this, bestie:

~/.config/pi-piper.conf
-----------------------
[DEFAULT]
pipe = /usr/bin/procmail
# Prune successfully processed messages
shallow = yes

~/.procmailrc
-------------
DEFAULT=$HOME/Maildir/

# Don't deliver cross-posted duplicates
:0 Wh: .msgid.lock
| formail -D 8192 .msgid.cache

~/.config/lore.conf
-------------------
[core]
toplevel = ~/.local/share/grokmirror/lore
log = ${toplevel}/grokmirror.log

[remote]
site = https://lore.kernel.org
manifest = https://lore.kernel.org/manifest.js.gz

[pull]
post_update_hook = ~/.local/bin/grok-pi-piper -c ~/.config/pi-piper.conf
include = /list-you-want/*
          /another-list/*

It assumes that grokmirror was installed from pip. If you installed it some other way (respect, honestly), please check the path for the grok-pi-piper script β€” it might not be where you think it is. πŸ™ˆ

⚠️ Heads up: the initial clone may take a long time, even if you set shallow=yes. like, go make a snack, it's fine.

Also β€” see pi-piper.conf for other config options. iykyk. πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” show this help message and exit. classic.
  • -v, --verbose β€” Be verbose and tell us what you are doing (default: False). she's chatty, we love that.
  • -d, --dry-run β€” Do a dry-run and just show what would be done (default: False). pretend mode! nothing actually happens, it's giving rehearsal.
  • -c CONFIG, --config CONFIG β€” Location of the configuration file (default: None).
  • -l PIPELAST, --pipe-last PIPELAST β€” Force pipe last NN messages in the list, regardless of tracking (default: None). like, you don't care what the tracker thinks, you want those last NN messages piped, periodt.
  • --version β€” show program's version number and exit.

🌈 SEE ALSO 🌈


🫢 SUPPORT 🫢

Email tools@linux.kernel.org. they're nice, fr fr.


πŸ’œ AUTHOR πŸ’œ

mricon@kernel.org

License: GPLv3+


The Linux Foundation and contributors


and that's the whole page, bestie!! πŸ’– this was version 2.0.2, dated 2020-10-07 β€” go forth and pipe those messages, you absolute icon πŸ¦‹βœ¨