This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Inbox Unread reports inbox statistics hourly in the form of a Twitter avatar. | |
To run Inbox Unread first copy this php script to your server. Put your background | |
avatar adjacent to this file as "input.jpeg". Mine is 548x548 and all the positions | |
are setup for that size. Next go to http://script.google.com/ and sign in. Click | |
"Create a script for GMail" and replace the template with this code: | |
function processInbox() { | |
var unreadCount = GmailApp.getInboxUnreadCount(); |