local/bin/fetchmail

   1 #!/bin/bash
   2 
   3 # poll mail.cock.li
   4 # protocol pop3
   5 # username 'mail@lexa.by'
   6 # password ''
   7 # ssl
   8 
   9 [[ $MAIL ]] &&
  10 echo $MAIL > ~/.forward
  11 
  12 gpg -qd ~/.fetchmailrc.gpg |
  13 /usr/bin/fetchmail -f - "$@"