48件ヒット
[1-48件を表示]
(0.074秒)
別のキーワード
ライブラリ
-
net
/ pop (48)
キーワード
-
auth
_ only (12) -
delete
_ all (24) -
set
_ debug _ output (12)
検索結果
先頭4件
-
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
}
実...