| GROK-PI-PIPER(1) | GROK-PI-PIPER(1) |
GROK-PI-PIPER - Hook script for piping new messages from public-inbox repos
This is a ready-made hook script that can be called from pull.post_update_hook when mirroring public-inbox repositories. It will pipe all newly received messages to arbitrary commands defined in the config file. The simplest configuration for lore.kernel.org is:
~/.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 via some other means, please check the path for the grok-pi-piper script.
Note, that initial clone may take a long time, even if you set shallow=yes.
See pi-piper.conf for other config options.
Email tools@linux.kernel.org.
mricon@kernel.org
License: GPLv3+
The Linux Foundation and contributors
| 2020-10-07 | 2.0.2 |