275件ヒット
[1-100件を表示]
(0.138秒)
別のキーワード
ライブラリ
-
net
/ pop (275)
キーワード
- active? (11)
- address (11)
- apop? (11)
-
auth
_ only (11) -
delete
_ all (22) -
disable
_ ssl (11) - each (11)
-
each
_ mail (11) -
enable
_ ssl (11) - finish (11)
- mails (11)
-
n
_ bytes (11) -
n
_ mails (11) -
open
_ timeout (11) -
open
_ timeout= (11) - port (11)
-
read
_ timeout (11) -
read
_ timeout= (11) - reset (11)
-
set
_ debug _ output (11) - start (22)
- started? (11)
-
use
_ ssl? (11)
検索結果
先頭5件
-
Net
:: POP3 # apop? -> bool (9102.0) -
このインスタンスが APOP を使ってサーバに接続するなら true を返します。
...このインスタンスが APOP を使ってサーバに接続するなら true を返します。... -
Net
:: POP3 # port -> Integer (9102.0) -
接続するポート番号です。
接続するポート番号です。 -
Net
:: POP3 # set _ debug _ output(f) -> () (6108.0) -
デバッグ用の出力 f をセットします。
...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"
<- "APOP Yo... -
Net
:: POP3 # open _ timeout -> Integer (6102.0) -
接続時に待つ最大秒数を返します。
...接続時に待つ最大秒数を返します。
この秒数たってもコネクションが開かないときは例外 Net::OpenTimeout を発生します。
デフォルトは30秒です。
@see Net::POP3#open_timeout=... -
Net
:: POP3 # open _ timeout=(n) (6102.0) -
接続時に待つ最大秒数を設定します。
...接続時に待つ最大秒数を設定します。
@param n タイムアウトまでの秒数
@see Net::POP3#open_timeout... -
Net
:: POP3 # each {|popmail| . . . . } -> [Net :: POPMail] (3202.0) -
サーバ上の各メールを引数としてブロックを呼びだします。
...ルは Net::POPMail のインスタンスとして渡されます。
pop3.mails.each と同じです。
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPError サーバがエラーを報告した場合に発生します
@raise Net::POPBadResponse サー... -
Net
:: POP3 # each _ mail {|popmail| . . . . } -> [Net :: POPMail] (3202.0) -
サーバ上の各メールを引数としてブロックを呼びだします。
...ルは Net::POPMail のインスタンスとして渡されます。
pop3.mails.each と同じです。
@raise TimeoutError 接続がタイムアウトした場合に発生します
@raise Net::POPError サーバがエラーを報告した場合に発生します
@raise Net::POPBadResponse サー... -
Net
:: POP3 # auth _ only(account , password) -> () (3102.0) -
POP セッションを開き、認証だけを行って接続を切ります。
...POP セッションを開き、認証だけを行って接続を切ります。
主に POP before SMTP のために用意されています。
使用例:
require 'net/pop'
pop = Net::POP3.new('pop.example.com')
pop.auth_only 'YourAccount', 'YourPassword'
@param account アカウント名......文字列
@param password パスワード文字列
@raise IOError セッションが既に開始されている場合に発生します
@raise Net::POPAuthenticationError 認証に失敗した、もしくはAPOPを利用しようとしたがサーバがAPOPを提供していない場合に発生し......ます
@raise Net::POPError サーバが認証失敗以外のエラーを報告した場合に発生します
@raise Net::POPBadResponse サーバからの応答がプロトコル上不正であった場合に発生します... -
Net
:: POP3 # delete _ all {|popmail| . . . . } -> () (3102.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 # enable _ ssl(verify _ or _ params={} , certs=nil) -> () (3102.0) -
このインスタンスが SSL による通信を利用するように設定します。
...params にハッシュを渡した場合には、接続時に生成される
OpenSSL::SSL::SSLContext オブジェクトの
OpenSSL::SSL::SSLContext#set_params に渡されます。
certs は無視されます。
verify_or_params がハッシュでない場合には、接続時に生成される
Op......の
OpenSSL::SSL::SSLContext#set_params に
{ :verify_mode => verify_or_params, :ca_path => certs }
というハッシュが渡されます。
@param verify_or_params SSLの設定のハッシュ、もしくは SSL の設定の verify_mode
@param certs SSL の設定の ca_path
@see Net::POP3.enab......le_ssl, Net::POP3#disable_ssl, Net::POP3#use_ssl?...