Skip to content

Instantly share code, notes, and snippets.

@GabeBenjamin
GabeBenjamin / gmailAutoArchive.js
Created May 6, 2017 01:00
Google script to automatically archive emails after x number of days.
// Original author fwed ([email protected])
// Modified from
// https://gist.github.com/anonymous/2cca33d376f7f924fdaa67891ad098cc
// https://medium.com/@fw3d/auto-archive-emails-in-gmail-after-2-days-1ebf0e076b1c
function gmailAutoArchive() {
gmailAutoarchiveHelper(1);
gmailAutoarchiveHelper(2);
gmailAutoarchiveHelper(3);
gmailAutoarchiveHelper(7);