fetchmail is ancient mailbox polling voodoo, often used with cron to aggregate several remote POP3 and IMAP mailboxes into one.

cron invocation for the terminally lazy:

*/5 * * * * /usr/bin/fetchmail > /dev/null 2>&1

Sensible defaults for the terminally lazy:

defaults proto imap, timeout 60, fetchall, set logfile "/Users/username/var/log/fetchmail.log" set postmaster username set no bouncemail

Gmail polling using OpenSSL:

Add this to your .fetchmailrc:

poll port 995 plugin "openssl s_client -quiet -connect %h:%p" protocol pop3 user "" password "plaintext"