るりまサーチ

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

別のキーワード

  1. _builtin nil?
  2. object nil?
  3. nilclass nil?
  4. object nil
  5. _builtin nil

ライブラリ

キーワード

検索結果

<< 1 2 > >>

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

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

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

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

ブロックを与えた場合には、生成した Net::POP3 オブジェクトが
ブロックに渡され、ブロックが終わっ...
...port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使います。

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

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

使用例:

require 'net/pop'

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

@see Net::POP3#start...

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

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

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

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

ブロックを与えた場合には、生成した Net::POP3 オブジェクトが
ブロックに渡され、ブロックが終わっ...
...port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使います。

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

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

使用例:

require 'net/pop'

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

@see Net::POP3#start...

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

POP セッションを開始し、サーバ上のメールを全て消去します。

...t::POPMail のインスタンスとして渡されます。

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

使用例:

require 'net/pop'

Net::POP3
.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end

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

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

POP セッションを開始し、サーバ上のメールを全て消去します。

...t::POPMail のインスタンスとして渡されます。

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

使用例:

require 'net/pop'

Net::POP3
.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end

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

Net::POP3.auth_only(address, port = nil, account, password, isapop=false) (108.0)

POP セッションを開き、認証だけを行って接続を切ります。

...て接続を切ります。

主に POP before SMTP のために用意されています。


使用例:

require 'net/pop'

Net::POP3
.auth_only('pop.example.com', nil, # using default port (110)
'YourAccount', 'YourPassword')

@param address POP3サーバのホスト...

絞り込み条件を変える

Net::POP3.certs -> String|nil (108.0)

SSL のパラメータの ca_file (なければ ca_path) を返します。

...SSL のパラメータの ca_file (なければ ca_path) を返します。

どちらも設定されていない場合は nil を返します。

@see OpenSSL::SSL::SSLContext#ca_file, OpenSSL::SSL::SSLContext#ca_path...

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

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

...OPMail のインスタンスで渡されます。

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

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

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

使用例:

require 'net/pop'

Net::POP3
.foreach('pop.example.com', 110,
'YourAccount', 'YourPassword') do |m|
file.write m.pop
m.delete if $DELETE
end

@param address POP3サーバのホスト名文字列
@pa...
...ていない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3.start, Net::POP3#each_mail...

Net::POP3.new(address, port = nil, apop = false) -> Net::POP3 (108.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.ssl_params -> Hash|nil (108.0)

SSL での接続を有効にしている場合には、 SSL の設定のハッシュを返します。

...時に生成される
OpenSSL::SSL::SSLContext オブジェクトの
OpenSSL::SSL::SSLContext#set_params に渡されます。
このハッシュを変更することで、利用されるパラメータが
変更されます。

SSL を有効にしていない場合には nil を返します。...

Net::POP3.verify -> Integer|nil (108.0)

SSL のパラメータの verify_mode を返します。

...SSL のパラメータの verify_mode を返します。

設定されていない場合は nil を返します。

@see OpenSSL::SSL::SSLContext#verify_mode...

絞り込み条件を変える

<< 1 2 > >>