Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > status

instance method 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}