I'm trying to create a filter in Apps script only, but in order for my filter to work I need a function the can make an email skip the inbox. Something like this,
threads[i].markRead();
threads[i].addLabel(important);
threads[i].skipInbox()
There is a function
.moveToInbox()
But I cant find one that does the opposite. Could someone suggest how to do it? Thanks!
CodePudding user response:
The appositive to moveToInbox()
is moveToarchive()
;
Reference
Related