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

Autoformat

This commit is contained in:
Knut Ahlers 2018-10-20 13:38:10 +02:00
parent 5b93a0a449
commit e58e96a68d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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)
} }