Pull text from Gmail
On Mon, 18 Feb 2019 19:50:39 +0000, Bill wrote:
I have a bunch of Gmail emails from a certain person and would like to import all the text into one text file, sorted in date order. The idea is to get something that I can edit to pull together a mass of technical information in a way that I can quickly consult it. At the moment the useful material is mixed in with chat about the weather etc. All I've found so far is a Gmail add-on to convert individual messages to pdf, but nothing that can just grab a lot of emails and pull the text out of all. It seems there used to be a Google labs app that pulled the essential text, without headers etc. to a file, but I can't even find that. Anyone know of a way to do this? I think you can download email from gmail using the POP3 protocol. You could use a POP3 client like fetchmail to download the email and send it to a an MTA for delivery to a local mailbox. You could then parse the local mailbox with the tool of your choice, or write a script to do it. |
Pull text from Gmail
In message , Caecilius
writes I think you can download email from gmail using the POP3 protocol. You could use a POP3 client like fetchmail to download the email and send it to a an MTA for delivery to a local mailbox. You could then parse the local mailbox with the tool of your choice, or write a script to do it. Thanks for that. I used to download Gmail into Thunderbird, but if I can download it into my main mail client, Turnpike, which only does Pop3, I think I can then export as a text file. -- Bill --- This email has been checked for viruses by AVG. https://www.avg.com |
Pull text from Gmail
Bill wrote:
In message , Caecilius writes I think you can download email from gmail using the POP3 protocol. You could use a POP3 client like fetchmail to download the email and send it to a an MTA for delivery to a local mailbox. You could then parse the local mailbox with the tool of your choice, or write a script to do it. Thanks for that. I used to download Gmail into Thunderbird, but if I can download it into my main mail client, Turnpike, which only does Pop3, I think I can then export as a text file. I can't remember if Turnpike pop3 settings are global or by server, but be sure to set Turnpike *not* to delete them off the server if you want them kept. I am sure you know this, but it's certainly the sort of slip I could make! -- Roger Hayter |
Pull text from Gmail
On 18/02/2019 20:17, Caecilius wrote:
On Mon, 18 Feb 2019 19:50:39 +0000, Bill wrote: I have a bunch of Gmail emails from a certain person and would like to import all the text into one text file, sorted in date order. The idea is to get something that I can edit to pull together a mass of technical information in a way that I can quickly consult it. At the moment the useful material is mixed in with chat about the weather etc. All I've found so far is a Gmail add-on to convert individual messages to pdf, but nothing that can just grab a lot of emails and pull the text out of all. It seems there used to be a Google labs app that pulled the essential text, without headers etc. to a file, but I can't even find that. Anyone know of a way to do this? I think you can download email from gmail using the POP3 protocol. You could use a POP3 client like fetchmail to download the email and send it to a an MTA for delivery to a local mailbox. You could then parse the local mailbox with the tool of your choice, or write a script to do it. Not sure about POP3 but IMAP4 is supported for sure - and same range of solutions apply :) You could probably use Thunderbird, then bulk select and copy to a Thunderbird local (to PC) folder, then you'd have an mbox style file. Beware though - having just implemented an email parser, it can be nightmarish as even the "text" bit can be buried 1-2 levels deep in nested MIME! -- Email does not work |
All times are GMT +1. The time now is 02:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter