4件ヒット
[1-4件を表示]
(0.072秒)
別のキーワード
ライブラリ
-
net
/ pop (4)
キーワード
-
auth
_ only (1) -
delete
_ all (2) -
set
_ debug _ output (1)
検索結果
先頭4件
-
Net
:: POP3 # auth _ only(account , password) -> () (25.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 -> () (25.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| . . . . } -> () (25.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) -> () (25.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
}
実行結果:
PO...