Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. . .


share|improve this question
up vote 2 down vote accepted

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

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

share|improve this answer

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 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 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.

share|improve this answer
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 '12 at 16:16

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)

share|improve this answer

You must log in to answer this question.

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