scripting

Pixel Bakery
I like getting shipping confirmations and updates, but all I need is a glance at the subject line and forget about it. The solution: tell Gmail to archive or delete certain emails after a specified number of days. Surprisingly enough, Gmail does not have this as a native feature. Users can set filters to automatically delete emails from certain senders or with keyword pattern matches, sure, but that’s an instant filter and those emails never see the light of day.
This is a great solution to Gmail's lack of retention policy features that I've been using for a while now. I set up a label for regular notification emails and this script moves them to the trash after 7 days or so. I was tired of Google trying to sell me more space. So I did a big purge and now emails are flowing to the Trash regularly.