summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-11-01 08:15:03 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-11-01 08:15:03 +0100
commit49e627f99c6b25582a5d2ba4f7db1b66278c9b78 (patch)
tree1111cd30d4219c7093dafd1c742e6edd76a36795
parentf8628b5f7f26847816b6052225fcd96031aed1a9 (diff)
Add script to fetch mail archives.
* scripts/fetch-mailbox.sh: New file.
-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