Skip to content

Instantly share code, notes, and snippets.

@sansal
Created June 8, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sansal/93da43063528d75a33f4d850b3829b4b to your computer and use it in GitHub Desktop.
Save sansal/93da43063528d75a33f4d850b3829b4b to your computer and use it in GitHub Desktop.
Gmail, otomatik sil
function OtomatikSil () {
var threads;
var thread;
threads = GmailApp.search("older_than:10d");
for(var i = 0; i < threads.length; i++)
{
var thread = threads[i];
GmailApp.moveThreadToTrash(thread);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment