るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.148秒)
トップページ > バージョン:2.7.0[x] > クエリ:-[x] > クエリ:r[x] > クエリ:file[x] > クラス:Net::POP3[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

キーワード

検索結果

Net::POP3.foreach(address, port = nil, account, password, isapop=false) {|mail| .... } -> () (18922.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.start(address, port = nil, account=nil, password=nil, isapop=false) -> Net::POP3 (18922.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.start(address, port = nil, account=nil, password=nil, isapop=false) {|pop| .... } -> object (18922.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.certs -> String|nil (18670.0)

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

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

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

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