Skip to content

tongtongStudioa/CleanUpMyMailBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CleanUpMyMailBox : Gmail

Clean your mail box is a good thing for the planet but it's also boring, let's write a script for move your mail older than 1 year and not starred to the trash in Google app's script

How to clean your mail box automatically :

  1. Open Google app's script

Open with your google count google app's script, your are on the start menu, go to my projects, create a new project and then go to the editor section.

  1. Update code JavaScript

Replace the function "my function{}" with the code in the code.js section

  1. Set the trigger for the function

Go to the section Trigger and add new trigger (button bottom-left) with your setting, mine are : once a month on the second day.

  1. Test and change

You can test the function cleanUpMyMailBox imediately with execute button. After that you can easily change as you want the code to move the mail, for example, older than 2 month. Here, a little recap of search operator in gmail

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published