/bin/dash does not recognize the source command.
[mail.git] / getmail.sh
1 #/bin/bash
2
3 # Copyright (C) 2014 Gabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>
4 # See LICENSE file for license details.
5
6 # This script fetches mail over rsync and then deletes the messages
7 # left on the server.
8 . "$HOME/.mail_config.sh"
9 ssh-add -l > /dev/null || ssh-add < /dev/null
10 rsync --remove-source-files --timeout 20 -avzhe ssh $server:$serverdir $inboxnew > /dev/null 2>&1