Initial commit.
[mail.git] / getmail.sh
1 #/bin/sh
2
3 # This script fetches mail over rsync and then deletes the messages
4 # left on the server.
5
6 ssh-add -l > /dev/null || ssh-add < /dev/null
7 rsync --remove-source-files -avzhe ssh -o ConnectTimeout=20 aubergine.gpcf.eu:/home/gpcf/Maildir/* /home/gpcf/Maildir/inbox > /dev/null