るりまサーチ

最速Rubyリファレンスマニュアル検索!
720件ヒット [1-100件を表示] (0.105秒)
トップページ > クエリ:Net::POP3[x]

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::pkey::ec::group
  4. new openssl::x509::certificate
  5. start net::smtp

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

Net::POP3 (23000.0)

POP3 のセッションを表すクラスです。

POP3 のセッションを表すクラスです。

Net::POP3.start(address, port = nil, account=nil, password=nil, isapop=false) -> Net::POP3 (21141.0)

Net::POP3 オブジェクトを生成し、サーバへ接続します。

...
Net::POP3
オブジェクトを生成し、サーバへ接続します。

ブロックを与えない場合には生成したオブジェクトを返します。

ブロックを与えた場合には、生成した Net::POP3 オブジェクトが
ブロックに渡され、ブロックが終わっ...
...995)を
使います。

以下のコードと同じ動作をします。
require 'net/pop'

Net::POP3
.new(address, port, isapop).start(account, password)

使用例:

require 'net/pop'

Net::POP3
.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop...
...バがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します

@see Net::POP3#start...

Net::POP3.new(address, port = nil, apop = false) -> Net::POP3 (21123.0)

Net::POP3 オブジェクトを生成します。

...Net::POP3 オブジェクトを生成します。

このメソッドではサーバの接続は行いません。
apop が真のときは APOP 認証を行うオブジェクトを生成します。

port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使いま...
...す。

@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param apop 真の場合にはAPOPで認証します

@see Net::POP3#start...

Net::POP3.start(address, port = nil, account=nil, password=nil, isapop=false) {|pop| .... } -> object (21041.0)

Net::POP3 オブジェクトを生成し、サーバへ接続します。

...
Net::POP3
オブジェクトを生成し、サーバへ接続します。

ブロックを与えない場合には生成したオブジェクトを返します。

ブロックを与えた場合には、生成した Net::POP3 オブジェクトが
ブロックに渡され、ブロックが終わっ...
...995)を
使います。

以下のコードと同じ動作をします。
require 'net/pop'

Net::POP3
.new(address, port, isapop).start(account, password)

使用例:

require 'net/pop'

Net::POP3
.start(addr, port, account, password) {|pop|
pop.each_mail do |m|
file.write m.pop...
...バがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します

@see Net::POP3#start...

Net::POP3.disable_ssl -> () (21028.0)

新しく生成する Net::POP3 オブジェクトが SSL を利用しないように設定します。

...新しく生成する Net::POP3 オブジェクトが
SSL を利用しないように設定します。

@see Net::POP3.enable_ssl, Net::POP3.use_ssl?...

絞り込み条件を変える

Net::POP3.enable_ssl(verify_or_params={}, certs=nil) -> () (21028.0)

新しく生成する Net::POP3 オブジェクトが SSL による通信利用するように設定します。

...新しく生成する Net::POP3 オブジェクトが
SSL による通信利用するように設定します。

verify_or_params にハッシュを渡した場合には、接続時に生成される
OpenSSL::SSL::SSLContext オブジェクトの
OpenSSL::SSL::SSLContext#set_params に渡されま...
...::SSL::SSLContext#set_params に
{ :verify_mode => verify_or_params, :ca_path => certs }
というハッシュが渡されます。

@param verify_or_params SSLの設定のハッシュ、もしくは SSL の verify_mode
@param certs SSL の ca_path

@see Net::POP3.disable_ssl, Net::POP3.use_ssl?...

Net::POP3#disable_ssl -> () (21024.0)

このインスタンスが SSL による通信を利用しないように設定します。

...このインスタンスが SSL による通信を利用しないように設定します。

@see Net::POP3#enable_ssl, Net::POP3#disable_ssl, Net::POP3#use_ssl?, Net::POP3.enable_ssl...

Net::POP3.foreach(address, port = nil, account, password, isapop=false) {|mail| .... } -> () (21024.0)

POP セッションを開始し、 サーバ上のすべてのメールを取りだし、 個々のメールを引数としてブロックを呼びだします。

...コードと同様の処理をします。
require 'net/pop'

Net::POP3
.start(address, port, account, password, isapop=false) {|pop|
pop.each_mail do |m|
yield m
end
}

使用例:

require 'net/pop'

Net::POP3
.foreach('pop.example.com', 110,
'YourAccount...
...ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#each_mail...

Net::POP3.APOP(is_apop) -> Class (21022.0)

bool が真なら Net::APOP クラス、偽なら Net::POP3 クラスを返します。

...bool が真なら Net::APOP クラス、偽なら Net::POP3 クラスを返します。

使用例:

require 'net/pop'

pop = Net::POP3::APOP($isapop).new(addr, port)
pop.start(account, password) {
....
}

@param is_apop 真の場合に Net::APOP を返します。...
<< 1 2 3 ... > >>