4

Basically, I want to download all messages that match a particular search from GMail. But I don't want to have to create a local backup of my entire 25GB+ GMail account. I assume I'm looking for something like fetchmail or getmail, but I very cursory perusal doesn't turn anything up for archiving a search. . .

Thanks!

3 Answers 3

3

Google now offers an "official" way to export your data from most Google services, inlcuding GMail and Calendar

https://www.google.com/settings/takeout

Just select what you want (the whole account or a specific label) and export it to mbox format.

1

Now, I don't know much about the mbox format, but the following steps will allow you to download your messages to a local client like Mail.app or Microsoft Exchange:

Next, label all of your email that you want to download with a common label. So, do your particular search in GMail, check the select all box to select all of the messages. If there are more than one page of messages then GMail will notify you like so: "All 20 conversations on this page are selected. Select all 900 conversations in Search results".

Click to select all of the messages and then apply your label. Then follow the instructions from http://lifehacker.com/5521065/how-to-migrate-email-from-one-gmail-account-to-another to download an individual folder (label) of messages to your computer.

I used it in the past to download certain GMail folders (labels) to my computer, which that page gives goods instructions for.

Using this method, you might be able to actually keep a synced backup of this search for any new items that come in by creating a GMail filter to automatically label them, and having the local email software keep that folder synced.

1
  • Yep, I'm familiar with processes like this, but I'd like to end up with raw, structured text files. Thanks though!
    – aresnick
    Apr 22, 2012 at 16:16
1

You can use MsgExtract to download your email mesages from GMail and save them in the mbox format. You only need to select the folders or labels that you want to export messages from.

(Disclaimer, I am the author of MsgExtract)

Not the answer you're looking for? Browse other questions tagged .