summaryrefslogtreecommitdiff
path: root/scripts/fetch-mailbox.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/fetch-mailbox.sh')
-rwxr-xr-xscripts/fetch-mailbox.sh15
1 files changed, 15 insertions, 0 deletions
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