Thursday, December 4, 2014

Download Gmail attachments automatically to Google Drive

If you haven’t used Send to Google Drive before, here’s how the it works.
You specify a Gmail label name in the sheet and the script will scan all your existing and incoming email messages inside that label for file attachments. For instance, you can say “inbox” to monitor the inbox folder, specify a custom label name or say “all” to monitor every folder in your Gmail mailbox. If the script finds an attachment, the file will be downloaded to your Google Drive.
Here’s a step by step guide on how you can setup the Send to Google Drive program for your Gmail account. It takes less than a minute.
  1. Click here to create a copy of the Send to Google Drive sheet in your Google Drive.
  2. Open the sheet and you should see a new Gmail Attachments menu at the top. Choose Authorize and grant the necessary permissions. This is an open-source Google Script) that runs in your own Google account and no one else will have access to any of your data.
  3. Click the Gmail Attachments menu again and select Run (step #2). Close the Google sheet and the script will begin downloading attachments from Gmail to your Google Drive in the background.
The program will monitor the specified Gmail label every five minutes and as soon as it finds a message that has attachments, it will automatically save the file(s) to the specified folder in your Google Drive.
Once the attachments have been saved, a new label — Processed — is applied to the Gmail message indicating that the message has been processed by the script. It saves all types of attachments but you can also specify a list of extensions separated by commas.
If you would like to stop the script later, open the same Google Sheet and choose Uninstall from the Gmail Attachments menu.


No comments:

Post a Comment