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?
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.
You can apply a label to the emails you want to export.
- Click 'Select labels' and choose the label you applied.
- Click 'CREATE ARCHIVE'
Found the answer here https://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
I just downloaded 4 years of receipts from a vendor I use with this:
gyb --email firstname.lastname@example.org --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.
Select the emails you want to download, right click, and select "forward as attachment". This will make a new email with all selected e-mails as ".eml" file attachments. Send that yourself and download attached files. From Google support page: https://support.google.com/mail/answer/9337672?hl=en
Use the Save Emails and Attachments Chrome extension:
With that extension you can save Gmail emails as PDFs to Google Drive. Read full instructions here.
You can convert PDFs to text a few different ways. Here's one.