Save Gmail Messages And Attachments To Google Drive With This Script


If you’re running out of space in Gmail (yes, some people do brush up against that 25GB limit), here’s a simple script that can help you free up inbox space by archiving emails to Google Drive. It’s also handy for saving emails and their attachments as PDFs.

The script comes from Google Apps solutions development company JellyBend, and it uses a Google spreadsheet to trigger the archiving. All you need to do is authorise the script and label any emails you want to archive with the “Archive to Drive” label and then select the “Archive Gmail Messages” command in the spreadsheet.

After the script does its magic, you’ll find those emails in a new “Email Archive” folder in Google Drive. The subfolder for each email is titled with the email date, time, sender and subject. Back in Gmail, the emails will have the “Archive to Drive” label removed. Note that the script doesn’t actually delete these emails from Gmail.

In my test using a Google Apps account, I had to create the label in Gmail and folder in Drive manually. The script is supposed to do that for you, but it might work with a regular Google account. It works as promised though.

If you want to save all your old emails to Drive and get rid of them in Gmail, use the “before:YYYY/MM/DD” filter, add the “Archive to Drive” label, hit up that spreadsheet button, and then you can delete them. As TechCrunch’s Sarah Perez writes: “It’s a Google alternative to Outlook’s PST.”

See the link below for full instructions and the script.

Archive Gmail messages to Google Drive folders [Jellybend via TechCrunch]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


One response to “Save Gmail Messages And Attachments To Google Drive With This Script”

Leave a Reply