Hacker News new | past | comments | ask | show | jobs | submit login

This reminds me to download and remove all my emails from Google’s GMail servers. Does anyone know of a good automated solution to do this on a regular basis?

That was the standard de facto way of accessing mail before web interfaces ruined it all: a lot faster than using a browser and you get full access to all your mail for complex searches etc.

Any offline client will do; I use Claws Mail since ages where I migrated all my email also from past clients such as Eudora under Windows XP. http://www.claws-mail.org/

It's multiplatform, very fast and stable and can keep, index and search huge datasets of emails (mine is over 60K messages since mid 90s) in seconds. Backing up/exporting the email database needs only saving the Mail directory in the user's home; I've successfully moved mail directories between Linux and Windows installations of Claws Mail without a hitch. It made Outlook users drop their jaws when they realized how fast it is and they no longer needed to delete years of mails because the client became slow as molasses.

All you have to do is configure it to access Google servers like any other client then check the option to delete the mail on the server once it has been downloaded. IIRC this option is checked by default.

Gmail (still) supports IMAP, so tools like offlineimap should work just fine.


There's a fairly direct way to dump all of your Google data here: https://support.google.com/accounts/answer/3024190?hl=en

I used it for a grepping through years of emails.

Maybe not what you want, but you could do this using a regular pop3 client and set it to delete copies from the server.

I therefore created a icloud and outlook account. Google allows you to forward all emails to anywhere. That way all three companies have to block you... Hope not

POP3? You can use the gmail pop3 server via your mail retriever program, and set it to not keep mail on the server (which is generally the default). All mail suite software (Thunderbird, Outlook, Evolution, etc.) and individual mail retrieval programs (e.g. mpop, fetchmail, getmail, etc) support it.

Google Takeout can probably be scripted somehow.

If you're on G Suite you can use GAM (https://github.com/jay0lee/GAM) to automate mailbox exports directly to mbox files.

Applications are open for YC Summer 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact