るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.125秒)
トップページ > クエリ:t[x] > クエリ:@[x] > 種類:インスタンスメソッド[x] > クエリ:require[x] > クラス:Net::POP3[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

Net::POP3#auth_only(account, password) -> () (6144.0)

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::POPBadRe...

Net::POP3#set_debug_output(f) -> () (6114.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"
<- "APOP YourAccount XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\r\n"
-> "+OK\r\n"
<- "STAT\r\n"
-> "+OK 37 339936\r\n"
339936
<- "QUIT\r\n"
-> "+OK\r\n"...