Skip to content

Which old Gmail conversations would you archive?

An old message can belong to a conversation with a new reply or a star on a different message. Archiving acts on the whole thread. Try the rule on this fictional inbox before applying it to yours.

Set the archive rule

Try the rule in Apps Script

The count-only script checks up to 100 search candidates for an inbox conversation whose newest message is more than 365 days old and whose messages have no stars. It logs the counts. GmailApp asks for full Gmail access even for this preview.

Download the preview script (.gs)

Share the rehearsal

Send the example to someone reviewing your team’s archive rule. The link opens the original fictional inbox.

https://bulldo.gs/demos/gmail-thread-archive/

Google’s GmailThread methods and permission requirements