Skip to content

Instantly share code, notes, and snippets.

@jackburns
jackburns / gmailAutoachive.js
Last active July 31, 2022 13:04
gmail autoarchive
function gmailAutoarchive() {
const rules = [
{label: "autoarchive", olderThanDays: 3},
{label: "autoarchive-delayed", olderThanDays: 7},
{label: "autoarchive-read", olderThanDays: 1, onlyRead: true},
{olderThanDays: 14, onlyRead: true}
]
const batch_size = 100;