Google Apps Script – read old emails from gmail category – part 018.

By | 21/06/2019

This tutorial shows you how to read old emails from category Forums by a number of days.
The script is simple and has just one function.
I started like any project with one document and one new script with authorization of Gmail.’
You can read these steps with my old tutorials.
Let’s see the script:

The result can be seen at View – Logs.
You can change this script to delete these emails, using this row of code: threads[i].moveToTrash();.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.