mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-12-23 04:21:21 +00:00
Delete Mails older than 10y
This commit is contained in:
parent
e58e96a68d
commit
f9e11b61e3
1 changed files with 2 additions and 1 deletions
3
Code.js
3
Code.js
|
@ -1,7 +1,8 @@
|
||||||
// Apps Scripts may only run for ~5m so we limit the execution
|
// 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() {
|
function cleanup() {
|
||||||
|
trashByQuery("older_than:10y")
|
||||||
trashByQuery("label:newsletter older_than:6m")
|
trashByQuery("label:newsletter older_than:6m")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue