Skip to content

Instantly share code, notes, and snippets.

@Rohaq
Rohaq / gmailAutoarchive.js
Last active February 12, 2021 11:30 — forked from anonymous/gmailAutoarchive.js
Autoarchive Gmail script for Google Scripts
function gmailAutoarchive() {
let labelRules = {
"Autoarchive": [
{ "days": 60, "actions": ["archive", "markread"] }
],
"Autodelete": [
{ "days": 60, "actions": ["delete"] }
],
"Label 1": [
{ "days": 30, "actions": ["archive", "markread"] }