Hacker News new | ask | show | jobs
by saagarjha 3000 days ago
I use Google Apps Script to archive old, unread emails in a label periodically: https://gist.github.com/saagarjha/d8657a5cee921856186cd12180.... I find this handy to clear out a couple of labels that invariably accumulate a junk; for example, I use this on all my mailing list subscriptions. One thing that's really annoying is that Google Apps Script is really eager to delete log entries for some reason, so the logging message I put for checking progress (when time runs out) doesn't ever show up in the logs because it's always likely that the logs were cleared out before I could read them.

Just for fun, I also have an script to post XKCD to a Slack channel: https://gist.github.com/saagarjha/ea067aff9674e8382c15d3b7de.... It's probably not the intended use, but it's free and runs periodically!