Wednesday, January 9, 2013

Cool! make this a js file!


function APP(){var i = 0;
               function LOLOL(){
 // loop
 while(i == 0){
   // Get your email
  var me = Session.getActiveUser().getEmail();
  // Get the number of emails unread
  var count = GmailApp.getInboxUnreadCount(me);
  // If there is more than five, send inportant email
  if (count > 5){
    GmailApp.sendEmail(me, 'inbox', 'READ THE UNREAD EMAILS!');
  }
   sleep(60000)
}
              }
       }