Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I would like to export selected emails from my Gmail account to a text file. How can I do this with the Gmail web interface or some other (Linux) option?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

I'm not sure that you can do this directly in Gmail. However, you could either selectively forward emails to an alternative account OR download your Gmail using POP3 to the Mozilla Thunderbird email client (which is available under Linux).

If you are filtering more than a handful of emails it would be easier to download your emails en masse using POP3 and use the filtering capabilities of Thunderbird.

Thunderbird supports many add-ons. The ImportExportTools add-on for instance appears to do what you are after, allowing the export of emails to single or multiple text files (there are no doubt others).


Thanks to @Tschareck for clarifying that Gmail filters do not allow you to forward emails already received.

share|improve this answer
1  
Forwarding with filters unfortunately works only with emails, that are received after filter was created., but can always FW manually. –  Tschareck Apr 14 '12 at 22:15
    
@Tschareck That's not quite true. When you create a filter, there is an additional checkbox at the end that enables you to "Also apply filter to # matching conversations." (the default is unchecked). –  w3d Apr 14 '12 at 22:23
1  
Yes, you can apply it, and it will work for labeling or starring, but not for forwarding. Unless something changed in new GMail. –  Tschareck Apr 14 '12 at 22:29
    
Ah yes, you are absolutely correct! Thanks for the clarification. –  w3d Apr 14 '12 at 22:35

Found the answer here http://webapps.stackexchange.com/a/21639/19021

It is the command-line tool Got-your-back. Authenticates with your gmail account to download results of any search query of your email to .eml files.

I just downloaded 4 years of receipts from a vendor I use with this:

gyb --email johnny5@gmail.com --search "widgets inc" --local-folder ~/foo

You need to be able to install this command-line tool, which requires python. Very good documentation on the site.

Technically this is not a web app.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.