mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-12-22 20:11:21 +00:00
Trash crontab mails after 6m
This commit is contained in:
parent
0bcc91d170
commit
05c5feac6a
1 changed files with 2 additions and 1 deletions
3
Code.js
3
Code.js
|
@ -2,9 +2,10 @@
|
|||
var MAX_DELETE_PER_LOOP = 1000
|
||||
|
||||
function cleanup() {
|
||||
trashByQuery("older_than:10y")
|
||||
trashByQuery("label:crontab older_than:6m")
|
||||
trashByQuery("label:newsletter older_than:6m")
|
||||
trashByQuery("label:social-media older_than:2y")
|
||||
trashByQuery("older_than:10y")
|
||||
}
|
||||
|
||||
function trashByQuery(query) {
|
||||
|
|
Loading…
Reference in a new issue