You can’t enable auto-purging in Gmail for any particular label but there’s a simple Google Script
that will bring this missing functionality to your Gmail. The script
will basically monitor messages belonging to a particular folder /label
in Gmail and purge those that have exceed the retention time.
Here’s how you can get auto-purge to work inside your Gmail:
Here’s how you can get auto-purge to work inside your Gmail:
- Open Google Script and choose File -> Make a copy to copy it into your Google Drive.
- Set the value of GMAIL_LABEL to the label that you wish to auto-purge and PURGE_AFTER are the number of days for which you to retain a message in Gmail.
- Go to Run -> Initialize and grant the necessary permissions. This is your personal script and nobody else will ever have access to your data.
- Go to Run -> Install to install the auto-purge script.
No comments:
Post a Comment