mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-11-08 15:30:10 +00:00
Autoformat
This commit is contained in:
parent
5b93a0a449
commit
e58e96a68d
1 changed files with 2 additions and 2 deletions
4
Code.js
4
Code.js
|
@ -8,7 +8,7 @@ function cleanup() {
|
||||||
function trashByQuery(query) {
|
function trashByQuery(query) {
|
||||||
var threads = []
|
var threads = []
|
||||||
var removedThreads = 0
|
var removedThreads = 0
|
||||||
|
|
||||||
do {
|
do {
|
||||||
threads = GmailApp.search(query)
|
threads = GmailApp.search(query)
|
||||||
for (var i = 0; i < threads.length; i++) {
|
for (var i = 0; i < threads.length; i++) {
|
||||||
|
@ -17,6 +17,6 @@ function trashByQuery(query) {
|
||||||
removedThreads++
|
removedThreads++
|
||||||
}
|
}
|
||||||
} while (threads.length > 0 && removedThreads < MAX_DELETE_PER_LOOP)
|
} while (threads.length > 0 && removedThreads < MAX_DELETE_PER_LOOP)
|
||||||
|
|
||||||
Logger.log('Removed %s threads for query "%s"', removedThreads, query)
|
Logger.log('Removed %s threads for query "%s"', removedThreads, query)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue