1
0
Fork 0
mirror of https://github.com/Luzifer/gmail-manage.git synced 2024-11-08 15:30:10 +00:00

Trash crontab mails after 6m

This commit is contained in:
Knut Ahlers 2018-10-20 18:11:39 +02:00
parent 0bcc91d170
commit 05c5feac6a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -2,9 +2,10 @@
var MAX_DELETE_PER_LOOP = 1000 var MAX_DELETE_PER_LOOP = 1000
function cleanup() { function cleanup() {
trashByQuery("older_than:10y") trashByQuery("label:crontab older_than:6m")
trashByQuery("label:newsletter older_than:6m") trashByQuery("label:newsletter older_than:6m")
trashByQuery("label:social-media older_than:2y") trashByQuery("label:social-media older_than:2y")
trashByQuery("older_than:10y")
} }
function trashByQuery(query) { function trashByQuery(query) {