News for hackers. Stuff that matters.
Re:Show HN: Adios.ai – Stop email interruptions, receive ema... by kimburgess on Tuesday November 06, 2018 @12:47AM (#18388694)
This is awesome. I've been wanting to setup this functionality for a while, but wasn't aware of Apps Script. One thing missing in the above is to remove the 'hidden' label.

  var buffer = GmailApp.getUserLabelByName('buffered');

  function release() {
    buffer.getThreads().map(unbuffer);
  }

  function unbuffer(thread) {
    thread.moveToInbox();
    thread.removeLabel(buffer);
  }

There are no comments on this comment yet.