Clicky

close
  • Why V3B
  • Blog
  • Reports + Guides
  • Webinars
  • Contact
  •  Facebook
  •  LinkedIn
  •  Twitter
  •  Google +
  •  YouTube
V3B
  • Menu
  • Why V3B
  • Blog
  • Reports + Guides
  • Webinars
  • Contact
    • Guest Post Guidelines

Email Tips: Clean Up Your Inbox With A Google Apps Script

By Shelly Kramer,

March 5, 2013
clean up gmailEmail is undoubtedly important—and at the same time, it can be a huge time drain depending on how much email you receive a day. And if your email inbox is anything like mine, well, it’s a jungle. Ready to tidy things up a bit? We stumbled on a Google Apps script that can help you better manage your Gmail inbox—no apps or extensions required.

We live our lives on a schedule (or try to, anyway)—so why not apply the same philosophy to your inbox? The Google Apps Script lets you automatically archive or delete old emails that are clogging up your inbox based on a schedule you create. The result? Time-based events that will move, mark or label messages—and you don’t even have to open your mail client!

I can hear your excitement. You’re ready to set it up, aren’t you? Let’s dive in with a hypothetical example. Say you want to get rid of deals, promotional emails or notifications that are two days old. To accomplish this, you’ll need to follow two steps:

1)    Create a “delete me” Gmail filter and populate the search options to catch your semi-spam as it arrives.

2)    Create a script that will delete all messages from the “delete me” label older than two days.

Once your filter has been created, go to https://script.google.com and create a blank project. You’ll enter the following code, as written on John Day’s blog–head there to copy and paste the script.

google apps clean up script

Notice that, in the second line, you have the option to change the number of delay variables to specify how many days should pass before that particular matched message will be deleted from your inbox.

When you’ve filled in the variables, save the script, name your project and click Run. After that, Google will ask you to authorize the script to access your Gmail account. Your final step is the schedule the interval at which you want the script to run. Simply go to the Resources menu and select your desired interval.

google apps script

Now that you’ve cleaned up older emails, what about the rest of your inbox? Don’t worry—there’s a script for that! You can easily archive older emails from your inbox using the Google Script here:

https://script.google.com/d/1FqkoGz0qhBxBfu2dbJMGL8yo-larautrN7ASJLHrGTxqkQtQNPEDX7CH/edit?usp=sharing

Simply copy and paste the script into https://script.google.com, specify your intervals and you’re set!

A quick note? If you want to clean up thousands of email messages, know that it will take time for the script to fully work. If you’d rather tackle your inbox in smaller batches, follow John’s steps to process email threads in groups of 100.

What do you think? Ready to give Google Apps Script a try? Be sure to let us know how it works. And if you have any other email management tips or tools, don’t be shy—give us the scoop!

Image: Mike Willis via Compfight cc

Shelly Kramer
Shelly Kramer

Shelly Kramer is a Principal Analyst and Founding Partner at Futurum Research. A serial entrepreneur with a technology centric focus, she has worked alongside some of the world’s largest brands to embrace disruption and spur innovation, understand and address the realities of the connected customer, and help navigate the process of digital transformation. She brings 20 years’ experience as a brand strategist to her work at Futurum, and has deep experience helping global companies with marketing challenges, GTM strategies, messaging develoment, and driving strategy and digital transformation for B2B brands across multiple verticals. Shelly’s coverage areas include Collaboration/CX/SaaS, platforms, ESG, and Cybersecurity, as well as topics and trends related to the Future of Work, the transformation of the workplace and how people and technology are driving that transformation. A transplanted New Yorker, she has learned to love life in the Midwest, and has firsthand experience that some of the most innovative minds and most successful companies in the world also happen to live in “flyover country.”

Tagged:clean up your inbox with google apps scriptemail clean upemail inbox managementemail management resourcesemail management tipsemail organizationgmail organizationgoogle apps email scripthow to organize your emailhow to write a google apps scriptkeep your email organizedproductivity resourcesproductivity tipstime management tips

Popular Posts

  • Instagram Phishing: How to Prevent It and What to Do If It Happens to You
  • Experiencing Twitter Analytics Problems – This May Be Why
  • Email Tips: Clean Up Your Inbox With A Google Apps Script
  • The Hanna Andersson Story: When Losing Customers is Okay
  • 7 Keyword Search Tools for Twitter

Recent Posts

  • How to Personalize Your Outreach Emails
  • Using Concepts From Other Industries to Create Innovative Marketing Materials
  • How to Keep People Engaged with Your Page
  • How Mobile Marketing Is Evolving and Expanding
  • The Importance of Customer Reviews in Marketing

Our Family of Companies

  • Why V3B
  • Terms and Conditions
  • Privacy Policy
  • Guest Post Guidelines
  • Contact
© 2023 V3 Broadsuite. All rights reserved.
All content published by V3B is determined by our editors 100% in the interest of our readers, independent of advertising, sponsorships, or other considerations.