Support download of single part messages.
[software/mumi.git] / scripts / fetch-mailbox.sh
1 #!/bin/sh
2
3 # This script is used for testing purposes only. It fetches the mail
4 # archives for guix-patches@gnu.org, converts these mbox files to a
5 # maildir, and then indexes the mails with mu.
6
7 mkdir -p tmp
8 cd tmp
9 wget ftp://lists.gnu.org/guix-patches/*
10 for mbox in $PWD/*; do
11 mb2md -s $mbox -d $PWD/../maildir
12 done
13
14 cd ..
15 mu index --maildir=maildir --muhome=$PWD/muhome