132件ヒット
[1-100件を表示]
(0.034秒)
別のキーワード
種類
- 特異メソッド (84)
- インスタンスメソッド (48)
ライブラリ
-
net
/ pop (132)
キーワード
- APOP (12)
-
auth
_ only (24) -
delete
_ all (48) - foreach (12)
-
set
_ debug _ output (12) - start (24)
検索結果
先頭5件
- Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () - Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) -> Net :: POP3 - Net
:: POP3 . start(address , port = nil , account=nil , password=nil , isapop=false) {|pop| . . . . } -> object - Net
:: POP3 # auth _ only(account , password) -> () - Net
:: POP3 # delete _ all -> ()
-
Net
:: POP3 . foreach(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (13.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,
'......ていない場合に発生します
@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 (13.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......バが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 (13.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......バがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します
@see Net::POP3#start... -
Net
:: POP3 # auth _ only(account , password) -> () (7.0) -
POP セッションを開き、認証だけを行って接続を切ります。
...き、認証だけを行って接続を切ります。
主に POP before SMTP のために用意されています。
使用例:
require 'net/pop'
pop = Net::POP3.new('pop.example.com')
pop.auth_only 'YourAccount', 'YourPassword'
@param account アカウント名文字列
@param password... -
Net
:: POP3 # delete _ all -> () (7.0) -
サーバ上のメールを全て消去します。
...きは消去する前に各メールを引数としてブロックを呼びだします。
メールは Net::POPMail のインスタンスとして渡されます。
使用例:
require 'net/pop'
n = 1
pop.delete_all do |m|
File.open("inbox/#{n}") {|f| f.write m.pop }
n += 1
end... -
Net
:: POP3 # delete _ all {|popmail| . . . . } -> () (7.0) -
サーバ上のメールを全て消去します。
...きは消去する前に各メールを引数としてブロックを呼びだします。
メールは Net::POPMail のインスタンスとして渡されます。
使用例:
require 'net/pop'
n = 1
pop.delete_all do |m|
File.open("inbox/#{n}") {|f| f.write m.pop }
n += 1
end... -
Net
:: POP3 # set _ debug _ output(f) -> () (7.0) -
デバッグ用の出力 f をセットします。
...ないでください。
f は << メソッドを持っているオブジェクトでなければなりません。
使用例:
require 'net/pop'
pop = Net::POP3.new('pop.example.com', 110)
pop.set_debug_output $stderr
pop.start('YourAccount', 'YourPassword') {
p pop.n_bytes
}
実... -
Net
:: POP3 . APOP(is _ apop) -> Class (7.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 を返します。... -
Net
:: POP3 . auth _ only(address , port = nil , account , password , isapop=false) (7.0) -
POP セッションを開き、認証だけを行って接続を切ります。
...き、認証だけを行って接続を切ります。
主に POP before SMTP のために用意されています。
使用例:
require 'net/pop'
Net::POP3.auth_only('pop.example.com', nil, # using default port (110)
'YourAccount', 'YourPassword')
@param address...