るりまサーチ

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

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

ライブラリ

キーワード

検索結果

Net::POP3#auth_only(account, password) -> () (8.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 -> () (8.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| .... } -> () (8.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) -> () (8.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
}

...