Skip to content

Commit

Permalink
Add maillist archiver
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Jul 18, 2024
1 parent d1b929f commit 2c0b8f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dot_bin/executable_maillist-archiver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

MAILMAN_URL="https://lists.linuxfoundation.org/pipermail/lightning-dev/"
wget -O- -q "$MAILMAN_URL" | grep -E -o 'href="[^"]+\.txt(\.gz)?"' | cut -f2 -d\" | while read -r filename; do
wget "$MAILMAN_URL/$filename"
if [[ "$filename" == *.gz ]]; then
gunzip "$filename"
fi
done

0 comments on commit 2c0b8f9

Please sign in to comment.