Using Mutt with Gmail
andrews-corner.org
andrews-corner.org
The setup shown in linked article is ok. But there's a better way.
http://wiki.github.com/jgoerzen/offlineimap/
Creates a maildir from an IMAP account. Syncs read/unread, new messages, IMAP folder moves both ways. Supports filtering, renaming/mapping, and more. Has a special Gmail mode. I run mine on a cron job to pull new mail from various accounts every few hours, and then go through all of my mail once every couple of days when I feel like it.
I can run it on multiple computers to keep them all in sync. Unread/read status is correct and synched across multiple machines, messages aren't deleted from the server when you fetch them, reading messages is super fast, I can still use other IMAP clients if I want (like GUI clients, or my phone). Love it to death.
It's not updated very frequently anymore (at all?) but it still seems to work. You can also check out http://linux.die.net/man/1/mbsync which I've been meaning to try switching to, so that I don't need Python for anything anymore.
Previously I was using Mutt + offlineimap
$ mutt -f imaps://<username>@gmail.com@imap.gmail.com(EDIT: Oh, and I agree with my sibling about IMAP -- not trying to ignore the parent.)