How to Save Email Messages from Gmail in Google Drive Folders

H
Published in: Download Gmail to Google Drive

The Save Emails add-on lets you download your Gmail emails and file attachments to any specific folder in  Google Drive. When setting up the download rule, click the “Select Drive Folder” button and the Google File Picker window will open. Select any folder in your Drive and the emails will automatically get saved inside this folder.

google-drive-folder.gif

Download Gmail in Google Team Drive

Read here - Save Emails in Team Drives

Organize Gmail Emails in Google Drive Folders

If you are saving a lot of emails and attachments, the parent folder in Google Drive may become cluttered and difficult to manage. The premium version of Save Emails add-on lets you organize saved emails in dynamic folders based on your email messages.

For instance, you could organize emails in date-based folders or you can choose to save emails from the same sender clubbed in the same folder and so on. You can also have all emails and attachments belonging to the same email message saved in a separate folder. Or emails with the same subject line can go in the same folder.

drive-destination-custom-folder.png

While setting up the rule, go to the Choose Destination Folder section and select the parent folder in Google Drive. Next, go to the Drive Sub Folder input field and specify the path of the dynamic subfolder where the files would go. You need to use the double backslash (\\) to specify a folder path.

For instance, if you wish to organize files in month folders, you can say {{Year}}\\{{Month}}. If you need to save emails from the same sender in a common folder, you can say {{Sender}} and a folder will be created inside the parent folder per sender.

Similarly, if you wish to save all emails of a particular thread in the same folder, you can say {{ThreadId}} or {{Subject}} {{ThreadId}}

Here is a list of all the variable name supported by Drive Subfolder path.

Variable

Description / Example

MessageId

Email Message Id

ThreadId

Email Thread Id

Date (format can be customized)

Message Date (e.g., 26-Feb-2017)

Day

26 (dd)

DayName

Wed (EEE)

DayNameFull

Wednesday (EEEEE)

Week

Week Number (ww)

Month

Feb (MMM)

MonthNumber

02 (MM)

MonthName

February (MMMMM)

Year

2017 (YYYY)

Sender

Sender’s Name (from the From field)

Recipient

Recipients Name (from the To field)

Subject

Email Subject

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Download Gmail to Google Drive

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
A
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account
G

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube