summaryrefslogtreecommitdiff
path: root/scripts/fetch-mailbox.sh
blob: 5ba4e83fae90c471a7c4fd648df76519778cf5f8 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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