Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > library net/imap
library net/imap
要約
IMAP プロトコルを扱うライブラリです。
Net::IMAP implements Internet Message Access Protocol (IMAP) clients. The IMAP protocol is described in [RFC2060].
Net::IMAP supports multiple commands. For example,
imap = Net::IMAP.new("imap.foo.net", "imap2") imap.authenticate("cram-md5", "bar", "password") imap.select("inbox") fetch_thread = Thread.start { imap.fetch(1..-1, "UID") } search_result = imap.search(["BODY", "hello"]) fetch_result = fetch_thread.value imap.disconnect
This script invokes the FETCH command and the SEARCH command concurrently.
References
- [IMAP] M. Crispin, "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1", RFC 2060, December 1996.
- [LANGUAGE-TAGS] Alvestrand, H., "Tags for the Identification of Languages", RFC 1766, March 1995.
- [MD5] Myers, J., and M. Rose, "The Content-MD5 Header Field", RFC 1864, October 1995.
- [MIME-IMB] Freed, N., and N. Borenstein, "MIME (Multipurpose Internet Mail Extensions) Part One: Format of Internet Message Bodies", RFC 2045, November 1996.
- [RFC-822] Crocker, D., "Standard for the Format of ARPA Internet Text Messages", STD 11, RFC 822, University of Delaware, August 1982.
- [RFC-2087] Myers, J., "IMAP4 QUOTA extension", RFC 2087, January 1997.
- [RFC-2086] Myers, J., "IMAP4 ACL extension", RFC 2086, January 1997.
- [OSSL] http://www.openssl.org
- [RSSL] http://savannah.gnu.org/projects/rubypki
クラスとモジュール
class Net::IMAP | IMAP access class. |
class Net::IMAP::Address | Net::IMAP::Address represents electronic mail addresses. |
class Net::IMAP::BodyTypeBasic | Net::IMAP::BodyTypeBasic represents basic body structures of messages. |
class Net::IMAP::BodyTypeMessage | Net::IMAP::BodyTypeMessage represents MESSAGE/RFC822 body structures of messages. |
class Net::IMAP::BodyTypeMultipart | |
class Net::IMAP::BodyTypeText | Net::IMAP::BodyTypeText represents TEXT body structures of messages. |
class Net::IMAP::ContentDisposition | Net::IMAP::ContentDisposition represents Content-Disposition fields. |
class Net::IMAP::ContinuationRequest | Net::IMAP::ContinuationRequest represents command continuation requests. |
class Net::IMAP::CramMD5Authenticator | Authenticator for the "CRAM-MD5" authentication type. See Net::IMAP#authenticate. |
class Net::IMAP::DigestMD5Authenticator | Authenticator for the "DIGEST-MD5" authentication type. See Net::IMAP#authenticate. |
class Net::IMAP::Envelope | Net::IMAP::Envelope represents envelope structures of messages. |
class Net::IMAP::FetchData | Net::IMAP::FetchData represents contents of the FETCH response. |
class Net::IMAP::LoginAuthenticator | Authenticator for the "LOGIN" authentication type. See Net::IMAP#authenticate. |
class Net::IMAP::MailboxACLItem | Net::IMAP::MailboxACLItem represents response from GETACL. |
class Net::IMAP::MailboxList | Net::IMAP::MailboxList represents contents of the LIST response. |
class Net::IMAP::MailboxQuota | Net::IMAP::MailboxQuota represents contents of GETQUOTA response. This object can also be a response to GETQUOTAROOT. In the syntax specification below, the delimiter used with the "#" construct is a single space (SPACE). |
class Net::IMAP::MailboxQuotaRoot | Net::IMAP::MailboxQuotaRoot represents part of the GETQUOTAROOT response. (GETQUOTAROOT can also return Net::IMAP::MailboxQuota.) |
class Net::IMAP::PlainAuthenticator | Authenticator for the "PLAIN" authentication type. See Net::IMAP#authenticate. |
class Net::IMAP::ResponseCode | Net::IMAP::ResponseCode represents response codes. |
class Net::IMAP::ResponseText | Net::IMAP::ResponseText represents texts of responses. The text may be prefixed by the response code. |
class Net::IMAP::StatusData | Net::IMAP::StatusData represents contents of the STATUS response. |
class Net::IMAP::TaggedResponse | Net::IMAP::TaggedResponse represents tagged responses. |
class Net::IMAP::ThreadMember | Net::IMAP::ThreadMember represents a thread-node returned by Net::IMAP#thread |
class Net::IMAP::UntaggedResponse | Net::IMAP::UntaggedResponse represents untagged responses. |
例外クラス
class Net::IMAP::Error | Superclass of all IMAP errors. |
class Net::IMAP::DataFormatError | Error raised when data is in the incorrect format. |
class Net::IMAP::ResponseParseError | Error raised when a response from the server is non-parseable. |
class Net::IMAP::ResponseError | Superclass of all errors used to encapsulate "fail" responses from the server. |
class Net::IMAP::NoResponseError | Error raised upon a "NO" response from the server, indicating that the client command could not be completed successfully. |
class Net::IMAP::BadResponseError | Error raised upon a "BAD" response from the server, indicating that the client command violated the IMAP protocol, or an internal server failure has occurred. |
class Net::IMAP::ByeResponseError | Error raised upon a "BYE" response from the server, indicating that the client is not being allowed to login, or has been timed out due to inactivity. |