SlideShare a Scribd company logo
1 of 10
Download to read offline
Save Gmail Attachments to Google Drive

Step 1
Open the Google Spreadsheet titled Send to Google Drive.

Digital Inspiration www.labnol.org

Page 1
Save Gmail Attachments to Google Drive

Step 2
Enter the names of one or more Gmail Labels in cell D4. The script will monitor Gmail messages
under these label and any attachments included in these message will get saved to your Google
Drive.
If you wish to save attachments from all Gmail messages, irrespective of the label name, just put all
in cell D4.
You can multiple labels separated by a comma. For instance, if you wish to extract mails from labels
Inbox, Sent Items and the Starred items in Gmail, put inbox, starred, sent in the cell.
It supports nested labels too though the syntax is a bit different. If the label's name is SubLabel
under ParentLabel, you need to put it as ParentLabel-SubLabel (notice the hyphen)

Digital Inspiration www.labnol.org

Page 2
Save Gmail Attachments to Google Drive

Step 3
Enter the names of the Google Drive folder in cell D5. The script will automatically save Gmail
attachments under a subfolder of this folder.
The subfolder's name will be the domain name from where that message was received. The
attachments saved in the Google Drive are also marked with the GMail Message ID making it easier
for you know where that message came from.

Digital Inspiration www.labnol.org

Page 3
Save Gmail Attachments to Google Drive

Step 4
Enter the names of a Gmail Label in cell D6 that will be used to mark processed messages.
When the script has saved attachments from a particular message, it will mark those messages with
this particular label to exclude that message from the queue forever.

Digital Inspiration www.labnol.org

Page 4
Save Gmail Attachments to Google Drive

Step 5
Now we need to authorize the program. Go the Gmail Attachments menu in the Google Sheet and
choose Authorize.

Digital Inspiration www.labnol.org

Page 5
Save Gmail Attachments to Google Drive

Step 5b:
Click OK at the Authorization Required dialog.

Digital Inspiration www.labnol.org

Page 6
Save Gmail Attachments to Google Drive

Step 5c
Click Accept at the Permissions screen. The script needs permissions to read your Gmail inbox and
save attachments in your Google Drive. Everything is running inside your own Google Drive and NO
ONE ELSE has access to any of your Gmail or Google Drive, including the developer of this
program.

Digital Inspiration www.labnol.org

Page 7
Save Gmail Attachments to Google Drive

Step 6
Now that the program is authorized, we need to run. Go to the Gmail Attachments menu again and
choose Run Program.

Digital Inspiration www.labnol.org

Page 8
Save Gmail Attachments to Google Drive

Step 7
The program is now running and will save attachments from Gmail to Google Drive at regular
intervals (every 5 minutes). You can close the Google Sheet and open Google Drive to monitor
incoming files.

Digital Inspiration www.labnol.org

Page 9
Save Gmail Attachments to Google Drive

Support & Resources
The Save Attachments to Google Drive program was written by Amit Agarwal of Digital Inspiration. It
is available in both free and premium versions.
Free: The free version is however limited to a single Gmail label and does not save attachments in
sub-folders.
Premium: The premium version supports Nested Labels, you can monitor messages in multiple
Gmail Labels and it saves attachments in subfolder thus keeping your Google Drive better
organized.
•
•
•
•

Tutorial: Save Attachments to Google Drive
Email: amit@labnol.org
Twitter: @labnol
See more Google Apps Script Projects

Digital Inspiration www.labnol.org

Page 10

More Related Content

Similar to Export Gmail Attachments to Google Drive

Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio AbdulImrankhan7
 
Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Sunil Komarapu
 
G Suite Zero (Basic 101) - Webinar (for Malaysians)
G Suite Zero (Basic 101) - Webinar (for Malaysians)G Suite Zero (Basic 101) - Webinar (for Malaysians)
G Suite Zero (Basic 101) - Webinar (for Malaysians)M Nasir SO
 
Git hub plugin setup and working with Git hub on anypoint studio
Git hub plugin setup and working with Git hub on anypoint studioGit hub plugin setup and working with Git hub on anypoint studio
Git hub plugin setup and working with Git hub on anypoint studioSudha Ch
 
How to install google drive on Windows
How to install google drive on WindowsHow to install google drive on Windows
How to install google drive on WindowsMokshis
 
Who Can See your Google Drive Files
Who Can See your Google Drive FilesWho Can See your Google Drive Files
Who Can See your Google Drive FilesAmit Agarwal
 
Google Drive Tips and Tricks
Google Drive Tips and TricksGoogle Drive Tips and Tricks
Google Drive Tips and TricksAttachments.io
 
Introduction to using google colab
Introduction to using google colabIntroduction to using google colab
Introduction to using google colabali alemi
 
Google Apps Certified Administrator
Google Apps Certified AdministratorGoogle Apps Certified Administrator
Google Apps Certified AdministratorMohammed Sidahmed
 
Using Gmail and Drive
Using Gmail and DriveUsing Gmail and Drive
Using Gmail and DriveJoshuagueta
 
Using gmail-and-google-drive
Using gmail-and-google-driveUsing gmail-and-google-drive
Using gmail-and-google-driveVincentDeCastro2
 
Using gmail-and-google-drive
Using gmail-and-google-driveUsing gmail-and-google-drive
Using gmail-and-google-driveBrian Luna
 
Almost all about Google Drive
Almost all about Google DriveAlmost all about Google Drive
Almost all about Google DrivePlusOrMinusZero
 
Using google apps in 7 easy steps
Using google apps in 7 easy stepsUsing google apps in 7 easy steps
Using google apps in 7 easy stepskhoiril anwar
 
Google Drive Integration in Odoo
Google Drive Integration in OdooGoogle Drive Integration in Odoo
Google Drive Integration in OdooAnisha Technaureus
 
Session 3-Storing and Organizing Files.pptx
Session 3-Storing and Organizing Files.pptxSession 3-Storing and Organizing Files.pptx
Session 3-Storing and Organizing Files.pptxWynner Elba
 
Welcome togoogleapps
Welcome togoogleappsWelcome togoogleapps
Welcome togoogleappsdotcomjungle
 
Welcome to Google Apps
Welcome to Google AppsWelcome to Google Apps
Welcome to Google Appsdotcomjungle
 

Similar to Export Gmail Attachments to Google Drive (20)

Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio
 
Github plugin setup in anypoint studio
Github plugin setup in anypoint studio Github plugin setup in anypoint studio
Github plugin setup in anypoint studio
 
G Suite Zero (Basic 101) - Webinar (for Malaysians)
G Suite Zero (Basic 101) - Webinar (for Malaysians)G Suite Zero (Basic 101) - Webinar (for Malaysians)
G Suite Zero (Basic 101) - Webinar (for Malaysians)
 
Git hub plugin setup and working with Git hub on anypoint studio
Git hub plugin setup and working with Git hub on anypoint studioGit hub plugin setup and working with Git hub on anypoint studio
Git hub plugin setup and working with Git hub on anypoint studio
 
How to install google drive on Windows
How to install google drive on WindowsHow to install google drive on Windows
How to install google drive on Windows
 
Who Can See your Google Drive Files
Who Can See your Google Drive FilesWho Can See your Google Drive Files
Who Can See your Google Drive Files
 
Google Drive Tips and Tricks
Google Drive Tips and TricksGoogle Drive Tips and Tricks
Google Drive Tips and Tricks
 
Introduction to using google colab
Introduction to using google colabIntroduction to using google colab
Introduction to using google colab
 
Google Apps Certified Administrator
Google Apps Certified AdministratorGoogle Apps Certified Administrator
Google Apps Certified Administrator
 
Using Gmail and Drive
Using Gmail and DriveUsing Gmail and Drive
Using Gmail and Drive
 
Using gmail-and-google-drive
Using gmail-and-google-driveUsing gmail-and-google-drive
Using gmail-and-google-drive
 
Using gmail-and-google-drive
Using gmail-and-google-driveUsing gmail-and-google-drive
Using gmail-and-google-drive
 
Using Gmail and Drive
Using Gmail and DriveUsing Gmail and Drive
Using Gmail and Drive
 
Using Gmail and Drive
Using Gmail and DriveUsing Gmail and Drive
Using Gmail and Drive
 
Almost all about Google Drive
Almost all about Google DriveAlmost all about Google Drive
Almost all about Google Drive
 
Using google apps in 7 easy steps
Using google apps in 7 easy stepsUsing google apps in 7 easy steps
Using google apps in 7 easy steps
 
Google Drive Integration in Odoo
Google Drive Integration in OdooGoogle Drive Integration in Odoo
Google Drive Integration in Odoo
 
Session 3-Storing and Organizing Files.pptx
Session 3-Storing and Organizing Files.pptxSession 3-Storing and Organizing Files.pptx
Session 3-Storing and Organizing Files.pptx
 
Welcome togoogleapps
Welcome togoogleappsWelcome togoogleapps
Welcome togoogleapps
 
Welcome to Google Apps
Welcome to Google AppsWelcome to Google Apps
Welcome to Google Apps
 

More from Amit Agarwal

Amit agarwal - Twitter Profile
Amit agarwal - Twitter ProfileAmit agarwal - Twitter Profile
Amit agarwal - Twitter ProfileAmit Agarwal
 
Google Addons and Google Apps Script Developer
Google Addons and Google Apps Script DeveloperGoogle Addons and Google Apps Script Developer
Google Addons and Google Apps Script DeveloperAmit Agarwal
 
How to Create Twitter Bots
How to Create Twitter BotsHow to Create Twitter Bots
How to Create Twitter BotsAmit Agarwal
 
Inline images for mail merge
Inline images for mail mergeInline images for mail merge
Inline images for mail mergeAmit Agarwal
 
Test Presentation - Ignore
Test Presentation - IgnoreTest Presentation - Ignore
Test Presentation - IgnoreAmit Agarwal
 
AdSense Tips by Amit Agarwal
AdSense Tips by Amit AgarwalAdSense Tips by Amit Agarwal
AdSense Tips by Amit AgarwalAmit Agarwal
 
Google Adsense Errors
Google Adsense ErrorsGoogle Adsense Errors
Google Adsense ErrorsAmit Agarwal
 
Write A Successful Blog
Write A Successful BlogWrite A Successful Blog
Write A Successful BlogAmit Agarwal
 

More from Amit Agarwal (16)

Amit agarwal - Twitter Profile
Amit agarwal - Twitter ProfileAmit agarwal - Twitter Profile
Amit agarwal - Twitter Profile
 
Google Addons and Google Apps Script Developer
Google Addons and Google Apps Script DeveloperGoogle Addons and Google Apps Script Developer
Google Addons and Google Apps Script Developer
 
How to Create Twitter Bots
How to Create Twitter BotsHow to Create Twitter Bots
How to Create Twitter Bots
 
Tech Tips
Tech TipsTech Tips
Tech Tips
 
Gmail Send Later
Gmail Send LaterGmail Send Later
Gmail Send Later
 
Blogging Tips
Blogging TipsBlogging Tips
Blogging Tips
 
Inline images for mail merge
Inline images for mail mergeInline images for mail merge
Inline images for mail merge
 
Hello world
Hello worldHello world
Hello world
 
Social Sharing
Social Sharing Social Sharing
Social Sharing
 
Twitter Book
Twitter BookTwitter Book
Twitter Book
 
Test Presentation - Ignore
Test Presentation - IgnoreTest Presentation - Ignore
Test Presentation - Ignore
 
Twitter Spam
Twitter SpamTwitter Spam
Twitter Spam
 
Presentation1
Presentation1Presentation1
Presentation1
 
AdSense Tips by Amit Agarwal
AdSense Tips by Amit AgarwalAdSense Tips by Amit Agarwal
AdSense Tips by Amit Agarwal
 
Google Adsense Errors
Google Adsense ErrorsGoogle Adsense Errors
Google Adsense Errors
 
Write A Successful Blog
Write A Successful BlogWrite A Successful Blog
Write A Successful Blog
 

Export Gmail Attachments to Google Drive

  • 1. Save Gmail Attachments to Google Drive Step 1 Open the Google Spreadsheet titled Send to Google Drive. Digital Inspiration www.labnol.org Page 1
  • 2. Save Gmail Attachments to Google Drive Step 2 Enter the names of one or more Gmail Labels in cell D4. The script will monitor Gmail messages under these label and any attachments included in these message will get saved to your Google Drive. If you wish to save attachments from all Gmail messages, irrespective of the label name, just put all in cell D4. You can multiple labels separated by a comma. For instance, if you wish to extract mails from labels Inbox, Sent Items and the Starred items in Gmail, put inbox, starred, sent in the cell. It supports nested labels too though the syntax is a bit different. If the label's name is SubLabel under ParentLabel, you need to put it as ParentLabel-SubLabel (notice the hyphen) Digital Inspiration www.labnol.org Page 2
  • 3. Save Gmail Attachments to Google Drive Step 3 Enter the names of the Google Drive folder in cell D5. The script will automatically save Gmail attachments under a subfolder of this folder. The subfolder's name will be the domain name from where that message was received. The attachments saved in the Google Drive are also marked with the GMail Message ID making it easier for you know where that message came from. Digital Inspiration www.labnol.org Page 3
  • 4. Save Gmail Attachments to Google Drive Step 4 Enter the names of a Gmail Label in cell D6 that will be used to mark processed messages. When the script has saved attachments from a particular message, it will mark those messages with this particular label to exclude that message from the queue forever. Digital Inspiration www.labnol.org Page 4
  • 5. Save Gmail Attachments to Google Drive Step 5 Now we need to authorize the program. Go the Gmail Attachments menu in the Google Sheet and choose Authorize. Digital Inspiration www.labnol.org Page 5
  • 6. Save Gmail Attachments to Google Drive Step 5b: Click OK at the Authorization Required dialog. Digital Inspiration www.labnol.org Page 6
  • 7. Save Gmail Attachments to Google Drive Step 5c Click Accept at the Permissions screen. The script needs permissions to read your Gmail inbox and save attachments in your Google Drive. Everything is running inside your own Google Drive and NO ONE ELSE has access to any of your Gmail or Google Drive, including the developer of this program. Digital Inspiration www.labnol.org Page 7
  • 8. Save Gmail Attachments to Google Drive Step 6 Now that the program is authorized, we need to run. Go to the Gmail Attachments menu again and choose Run Program. Digital Inspiration www.labnol.org Page 8
  • 9. Save Gmail Attachments to Google Drive Step 7 The program is now running and will save attachments from Gmail to Google Drive at regular intervals (every 5 minutes). You can close the Google Sheet and open Google Drive to monitor incoming files. Digital Inspiration www.labnol.org Page 9
  • 10. Save Gmail Attachments to Google Drive Support & Resources The Save Attachments to Google Drive program was written by Amit Agarwal of Digital Inspiration. It is available in both free and premium versions. Free: The free version is however limited to a single Gmail label and does not save attachments in sub-folders. Premium: The premium version supports Nested Labels, you can monitor messages in multiple Gmail Labels and it saves attachments in subfolder thus keeping your Google Drive better organized. • • • • Tutorial: Save Attachments to Google Drive Email: amit@labnol.org Twitter: @labnol See more Google Apps Script Projects Digital Inspiration www.labnol.org Page 10