2 Answers
2

You could use offlineimap to receive the mails from your GMail account.

Also running your own IMAP server and fetching the mail with fetchmail or getmail or generally sync the data with your GMail account (e. g. using imapsync) are viable options. Of course you have to think about syncing the changes back to GMail, e. g. what will happen if you delete a mail in your local IMAP server.

mutt is designed to look at one folder at a time, so you'd then be looking at scriptinging mutt somehow. The others are heavy-weight graphical clients. There are command-line tools which are designed to sync mailboxes and nothing else.
–
Phil PAug 15 '10 at 0:48