From f9e11b61e30e3b310ab6d3f36389ee00683125b8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 20 Oct 2018 14:48:42 +0200 Subject: [PATCH] Delete Mails older than 10y --- Code.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code.js b/Code.js index f711750..0473350 100644 --- a/Code.js +++ b/Code.js @@ -1,7 +1,8 @@ // Apps Scripts may only run for ~5m so we limit the execution -const MAX_DELETE_PER_LOOP = 1000 +var MAX_DELETE_PER_LOOP = 1000 function cleanup() { + trashByQuery("older_than:10y") trashByQuery("label:newsletter older_than:6m") }