]> git.elephly.net Git - software/mumi.git/commitdiff
Add script to fetch mail archives.
authorRicardo Wurmus <rekado@elephly.net>
Wed, 1 Nov 2017 07:15:03 +0000 (08:15 +0100)
committerRicardo Wurmus <rekado@elephly.net>
Wed, 1 Nov 2017 07:15:03 +0000 (08:15 +0100)
* scripts/fetch-mailbox.sh: New file.

scripts/fetch-mailbox.sh [new file with mode: 0755]

diff --git a/scripts/fetch-mailbox.sh b/scripts/fetch-mailbox.sh
new file mode 100755 (executable)
index 0000000..5ba4e83
--- /dev/null
@@ -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