How to Save Gmail Attachments to Google Drive

By | May 12, 2014

Your email in Gmail has attachments like images, documents, videos, etc. You can automatically save them in Google drive using the Send to Google Drive.

You specify a label name in the sheet and the script will scan all your existing and incoming email messages inside that label for attachments. You can say “inbox” to monitor the inbox folder, or specify a user label or say “all” to monitor every folder in your Gmail mailbox. If the script finds an attachment, the file is downloaded to your Google Drive.

How to Save Gmail Attachments to Google Drive

Here are some steps to auto save the attachments by using “Send to Google Drive”.

  1. Create a copy of the Send to Google Drive sheet in your Google Drive. Click here to create a copy of send to Google drive
  2. Open that Google sheet and you see a new Gmail Attachments menu at the top. Choose Authorize (Step #1) 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 5 minutes and as soon as it finds a message that has attachments, it will automatically save the file(s) to a folder in your Google Drive.

Once the all 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.

Send to Google Drive – Premium

The premium version supports even more features:

  1. Whitelist Filetypes – You can specify a list of filetypes and the script will only save attachments that are the specified type. For instance, you can say jpggif, png to save only image attachments or say all to save every single file attachment irrespective of the file type.
  2. Nested Google Drive Folders – You can choose to save email attachments in a single folder or specify sub-folders per Gmail label. For instance, say \\Main Folder\\Sub Folder to save files in the sub folder under the main folder.
  3. Nested Gmail Labels – It can monitor Gmail messages that are under nested Gmail labels or folder.
  4. Monitor Multiple Labels – While the free version only supports one Gmail label, the premium version can help you save email attachments from one or more Gmail labels.
  5. Google Drive Organized – The free version dumps all Gmail attachments to one Google Drive folder while the premium version organizes them in sub-folders thus keeping your Drive cleaner and more organized.
  6. Premium Support – You can opt for the $49.99 edition for instant support.

Leave a Reply

Your email address will not be published. Required fields are marked *