Skip to main content
100%

Archive Gmail Regularly

✓ Published0🌍 Public
SSciutoAlex
Last edited Oct 27, 2014
Created on Oct 27, 2014

This example shows a Gmail workflow for automatically archiving inbox messages based on age and category. Two Google Apps Script functions manage the process: `archiveInbox()` searches for threads older than two days that are not starred, while `batchArchiveCategories()` iterates through "social," "promotions," and "updates" tabs, moving threads older than one day in batches of 100. The script uses GmailApp’s `search()` and `moveThreadsToArchive()` methods, and a `runAll()` trigger schedules both routines regularly.

AI-generated description

Similar vizzes