From http://www.reddit.com/r/LifeProTips/comments/1nblca/lpt_use_google_script_with_your_gmail_account_to/