"Got Your Back" https://code.google.com/p/got-your-back/ is a pretty awesome python script that downloads/backs-up all your gmail to your hard drive. I've used it to backup 6 years of work email before leaving the job - then created a new gmail account and used GYB to push all those emails back onto an archive account (for easy indexing just in case I ever need to reference an old email).