However, there are some great TB extensions that will allow you to export your mail into a reasonable, portable format every so often. I use ImportExportTools to export my mailbox to an mbox file and store that file securely. I can use this file to reimport to Thunderbird or any other mail client, or even to read some mail directly. :)
Of course, this was in Feb 2011. Maybe things have changed now.
http://www.mattcutts.com/blog/backup-gmail-in-linux-with-get...
If anybody else tries this, I'd recommend sticking with POP3 as getmail's IMAP client seems to mark all your messages as read (not cool).
In the interest of full disclosure, I do know the backupify team, but I pay for the product because I find it useful.
and be able to backup your imap mailboxes without a GUI
Take the next 5 minutes to install thunderbird (you'll be impressed if you have not seen it in years) and enter the IMAP settings for google and download everything in the background while you work.
When your account gets hacked and you lose everything, you'll appreciate the backup.