Skip to content

Instantly share code, notes, and snippets.

@kaochenlong
Created June 17, 2011 10:06
Show Gist options
  • Save kaochenlong/1031159 to your computer and use it in GitHub Desktop.
Save kaochenlong/1031159 to your computer and use it in GitHub Desktop.
require 'gmail'
gmail = Gmail.new("your@gmail.com", "password")
puts gmail.inbox.count # 印出目前信箱裡的總數量
puts gmail.inbox.count(:unread) # 印出目前信箱裡的未讀的數量
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment