For Gmail you can do similar scripting with Google Apps Script. This isn't exactly the same, but it's a similar example.
<a href="http://gmailblog.blogspot.com/2011/07/gmail-snooze-with-apps-script.html" rel="nofollow">http://gmailblog.blogspot.com/2011/07/gmail-snooze-with-apps...</a>