Just create a
~/.fetchmailrc file containing:
Code:
poll pop.gmail.com proto pop3
user <username>@gmail.com
ssl
pass <password>
is <local user> here
Change <username>, <password> and <local user> to your gmail username, your gmail password and your local username (if it's different to your gmail username).
$ chmod 600 .fetchmailrc
then:
$ fetchmail