rpsyncmail (378B)
1 #!/bin/sh 2 3 export DOVECOT_PRESERVE_ENVS="SSH_AGENT_PID SSH_AUTH_SOCK" 4 dsynccmd="-u chrissi mirror ssh -p 443 -i /home/chrissi/.ssh/id_rsa chrissi@mail.r-36.net dsync -u chrissi" 5 6 if [ "$1" = "mb" ] || [ $# -eq 0 ]; 7 then 8 dsync -u chrissi $dsynccmd 9 else 10 for i in $*; 11 do 12 mailbox=$(echo $i | sed "s/^mb://g") 13 dsync -m $mailbox $dsynccmd 14 done 15 fi 16 17 date 18 PAGER= rpinc -nu 19 echo 20