1
0
Fork 0
mirror of https://github.com/Luzifer/gmail-manage.git synced 2024-12-22 20:11:21 +00:00

Delete Mails older than 10y

This commit is contained in:
Knut Ahlers 2018-10-20 14:48:42 +02:00
parent e58e96a68d
commit f9e11b61e3
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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")
}