Jump to content

Download Gmail emails to TXT files


unity06
 Share

Recommended Posts

Hi Forum,

I currently want to write a script that will download the emails from my gmail account and store them on my hard drive in form of text messages. Text file name will have date followed by title of the email and the email body will be the text body. Then I will write my scripts to monitor and inspect emails and post process the data.

Anyone can suggest an easy way to achieve this?

Maybe it has to be done indirectly via first having an email client that tracks my gmail account and downloads emails to hard drive such as Outlook?

Will be very thankful for any suggestions on how to tackle this.

Regards

Link to comment
Share on other sites

  • Moderators

If you are going to use Outlook as your email client (which it sounds like you're open to) check out OutlookEX UDF in the Examples forum. You can use _OL_ItemSave to save a mail item to a specified path.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...