るりまサーチ

最速Rubyリファレンスマニュアル検索!
84件ヒット [1-84件を表示] (0.101秒)

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document to_s
  4. rexml/document clone
  5. rexml/document node_type

ライブラリ

クラス

キーワード

検索結果

net/imap (38030.0)

このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。

...ォルトのメールボックス(INBOX)の送り元とサブジェクトを表示する。
require 'net/imap'

imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.examine('INBOX')
imap.search(["RECENT"]).each do |message_id|
envelope =...
...3年4月のメールをすべて Mail/sent-mail から "Mail/sent-apr03" へ移動させる

require 'net/imap'

imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.select('Mail/sent-mail')
if not imap.list('Mail/', 'sent-apr03')
imap.c...
...[:Deleted])
end
imap.expunge

=== スレッド安全性
Net::IMAP は並列実行をサポートしています。例として、

require 'net/imap'

imap = Net::IMAP.new("imap.foo.net", "imap2")
imap.authenticate("cram-md5", "bar", "password")
imap.select("inbox")
fetch_thread = Thre...

Net::IMAP::MailboxACLItem#user -> String (26101.0)

ユーザ名を返します。

ユーザ名を返します。

このユーザは
Net::IMAP#getacl で指定したメールボックスに
対し何らかの権限を持っています。

Net::IMAP#authenticate(auth_type, user, password) -> Net::IMAP::TaggedResponse (8113.0)

AUTHENTICATE コマンドを送り、クライアントを認証します。

...定します。


例:
imap.authenticate('LOGIN', user, password)

auth_type としては以下がサポートされています。
* "LOGIN"
* "PLAIN"
* "CRAM-MD5"
* "DIGEST-MD5"

@param auth_type 認証方式を表す文字列
@param user ユーザ名文字列
@param password パスワ...

Net::IMAP#login(user, password) -> Net::IMAP::TaggedResponse (8107.0)

LOGIN コマンドを送り、平文でパスワードを送りクライアント ユーザを認証します。

...

認証成功時には
認証成功レスポンスを返り値として返します。

認証失敗時には例外が発生します。

@param user ユーザ名文字列
@param password パスワード文字列
@raise Net::IMAP::NoResponseError 認証に失敗した場合に発生します
@se...

Net::IMAP#setacl(mailbox, user, rights) (8107.0)

SETACL コマンドを送り、指定したメールボックスに 指定したユーザに関する権限を設定します。

...ts に nil を渡すと、空文字列を指定したのと同様、つまり
すべての権限を削除します。

@param mailbox 権限を設定するメールボックスの名前(文字列)
@param user 権限を設定するユーザの名前(文字列)
@param rights 権限を表す文字列...

絞り込み条件を変える

Net::IMAP::MailboxACLItem#rights -> String (8006.0)

アクセス権限を文字列で返します。

...アクセス権限を文字列で返します。

Net::IMAP::MailboxACLItem#user で得られるユーザが
持っている権限が返されます。

この文字列の意味については 2086 を参照してください。...

NEWS for Ruby 2.0.0 (12.0)

NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...追加: Net::HTTP#local_port
* 追加: Net::HTTP#local_port=
* 拡張: Net::HTTP#connect uses local_host and local_port if specified.

* net/imap
* 追加: Net::IMAP.default_port
* 追加: Net::IMAP.default_imap_port
* 追加: Net::IMAP.default_tls_port
* 追加: Net::IMAP....
...the new TLS versions with OpenSSL::SSL:OP_NO_TLSv1_1 and
OpenSSL::SSL::OP_NO_TLSv1_2.
* Added OpenSSL::SSL::SSLContext#renegotiation_cb. A user-defined callback
may be set which gets called whenever a new handshake is negotiated. This
also allows to programmatically decline (cl...