Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > status
status(mailbox, attr)
Sends a STATUS command, and returns the status of the indicated mailbox. return value is a hash of attributes.
ex).
p imap.status("inbox", ["MESSAGES", "RECENT"]) #=> {"RECENT"=>0, "MESSAGES"=>44}