528件ヒット
[1-100件を表示]
(0.124秒)
種類
- インスタンスメソッド (300)
- 特異メソッド (216)
- 定数 (12)
ライブラリ
-
net
/ pop (528)
キーワード
- APOP (12)
- Revision (12)
- active? (12)
- address (12)
- apop? (12)
-
auth
_ only (24) - certs (12)
-
default
_ pop3 _ port (12) -
default
_ pop3s _ port (12) -
default
_ port (12) -
delete
_ all (48) -
disable
_ ssl (24) - each (12)
-
each
_ mail (12) -
enable
_ ssl (24) - finish (12)
- foreach (12)
- mails (12)
-
n
_ bytes (12) -
n
_ mails (12) - new (12)
-
open
_ timeout (12) -
open
_ timeout= (12) - port (12)
-
read
_ timeout (12) -
read
_ timeout= (12) - reset (12)
-
set
_ debug _ output (12) -
socket
_ type (12) -
ssl
_ params (12) - start (48)
- started? (12)
-
use
_ ssl? (24) - verify (12)
検索結果
先頭5件
-
Net
:: POP3 # delete _ all -> () (9101.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| . . . . } -> () (9101.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 # reset -> () (9101.0) -
セッションをリセットします。
...セッションをリセットします。
リセットによって Net::POPMail#delete で付けた削除マークがすべて
取り除かれます。
POP3 ではメール一個だけを復活する方法はありません。... -
Net
:: POP3 # set _ debug _ output(f) -> () (9101.0) -
デバッグ用の出力 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
}
実行結果:
POP session started: pop.example.com:110 (POP)
-> "+OK popd <1162042773.26346.155555a1861c@pop.example.com>\r\n"... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) -> () (9101.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...は Net::POPMail のインスタンスとして渡されます。
port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end......@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウント名文字列
@param password パスワード文字列
@param isapop 真でAPOPを利用します
@raise TimeoutError 接続がタイムアウトした場合に......aise Net::POPAuthenticationError 認証に失敗した、もしくはAPOPを利用しようとしたがサーバがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse... -
Net
:: POP3 . delete _ all(address , port = nil , account , password , isapop=false) {|mail| . . . . } -> () (9101.0) -
POP セッションを開始し、サーバ上のメールを全て消去します。
...は Net::POPMail のインスタンスとして渡されます。
port に nil を渡すと、適当なポート(通常は110、SSL利用時には 995)を
使います。
使用例:
require 'net/pop'
Net::POP3.delete_all(addr, nil, 'YourAccount', 'YourPassword') do |m|
puts m.pop
end......@param address POP3サーバのホスト名文字列
@param port 接続するPOP3サーバのポート番号
@param account アカウント名文字列
@param password パスワード文字列
@param isapop 真でAPOPを利用します
@raise TimeoutError 接続がタイムアウトした場合に......aise Net::POPAuthenticationError 認証に失敗した、もしくはAPOPを利用しようとしたがサーバがAPOPを提供していない場合に発生します
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse... -
Net
:: POP3 . socket _ type -> Class (9101.0) -
このメソッドは obsolete です。 使わないでください。
...このメソッドは obsolete です。
使わないでください。... -
Net
:: POP3 . verify -> Integer|nil (6201.0) -
SSL のパラメータの verify_mode を返します。
...SSL のパラメータの verify_mode を返します。
設定されていない場合は nil を返します。
@see OpenSSL::SSL::SSLContext#verify_mode... -
Net
:: POP3 # active? -> bool (6101.0) -
POP3 セッションが開始されていたら真を返します。
...POP3 セッションが開始されていたら真を返します。
active? は obsolete です。...