From 49e627f99c6b25582a5d2ba4f7db1b66278c9b78 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 1 Nov 2017 08:15:03 +0100 Subject: Add script to fetch mail archives. * scripts/fetch-mailbox.sh: New file. --- scripts/fetch-mailbox.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/fetch-mailbox.sh (limited to 'scripts') diff --git a/scripts/fetch-mailbox.sh b/scripts/fetch-mailbox.sh new file mode 100755 index 0000000..5ba4e83 --- /dev/null +++ b/scripts/fetch-mailbox.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# This script is used for testing purposes only. It fetches the mail +# archives for guix-patches@gnu.org, converts these mbox files to a +# maildir, and then indexes the mails with mu. + +mkdir -p tmp +cd tmp +wget ftp://lists.gnu.org/guix-patches/* +for mbox in $PWD/*; do + mb2md -s $mbox -d $PWD/../maildir +done + +cd .. +mu index --maildir=maildir --muhome=$PWD/muhome -- cgit v1.2.3