mirror of
https://github.com/Luzifer/gmail-manage.git
synced 2024-12-22 20:11:21 +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) {
|
||||
var threads = []
|
||||
var removedThreads = 0
|
||||
|
||||
|
||||
do {
|
||||
threads = GmailApp.search(query)
|
||||
for (var i = 0; i < threads.length; i++) {
|
||||
|
@ -17,6 +17,6 @@ function trashByQuery(query) {
|
|||
removedThreads++
|
||||
}
|
||||
} while (threads.length > 0 && removedThreads < MAX_DELETE_PER_LOOP)
|
||||
|
||||
|
||||
Logger.log('Removed %s threads for query "%s"', removedThreads, query)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue