るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
16件ヒット [1-16件を表示] (0.010秒)

検索結果

Net::IMAP.add_authenticator(auth_type, authenticator) -> () (10.0)

Net::IMAP#authenticate で使う 認証用クラスを設定します。

...追加するために用います。

通常は使う必要はないでしょう。もしこれを用いて
認証方式を追加する場合は net/imap.rb の
Net::IMAP::LoginAuthenticator などを参考にしてください。

@param auth_type 認証の種類(文字列)
@param authenticator 認...

Net::IMAP.debug -> bool (10.0)

デバッグモードが on になっていれば真を返します。

デバッグモードが on になっていれば真を返します。

@see Net::IMAP#debug=

Net::IMAP.debug=(val) (10.0)

デバッグモードの on/off をします。

デバッグモードの on/off をします。

真を渡すと on になります。

@param val 設定するデバッグモードの on/off の真偽値
@see Net::IMAP#debug

Net::IMAP.decode_utf7(str) -> String (10.0)

modified UTF-7 の文字列を UTF-8 の文字列に変換します。

modified UTF-7 の文字列を UTF-8 の文字列に変換します。

modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。

詳しくは 2060 の 5.1.3 を参照してください。

Net::IMAP ではメールボックス名のエンコードを自動的変換「しない」
ことに注意してください。必要があればユーザが変換すべきです。

@param str 変換対象の modified UTF-7 でエンコードされた文字列
@see Net::IMAP.encode_utf7

Net::IMAP.default_imap_port -> Integer (10.0)

デフォルトの IMAP のポート番号(143)を返します。

デフォルトの IMAP のポート番号(143)を返します。

@see Net::IMAP.default_tls_port

絞り込み条件を変える

Net::IMAP.default_imaps_port -> Integer (10.0)

デフォルトの IMAPS のポート番号(993)を返します。

デフォルトの IMAPS のポート番号(993)を返します。

@see Net::IMAP.default_port

Net::IMAP.default_port -> Integer (10.0)

デフォルトの IMAP のポート番号(143)を返します。

デフォルトの IMAP のポート番号(143)を返します。

@see Net::IMAP.default_tls_port

Net::IMAP.default_ssl_port -> Integer (10.0)

デフォルトの IMAPS のポート番号(993)を返します。

デフォルトの IMAPS のポート番号(993)を返します。

@see Net::IMAP.default_port

Net::IMAP.default_tls_port -> Integer (10.0)

デフォルトの IMAPS のポート番号(993)を返します。

デフォルトの IMAPS のポート番号(993)を返します。

@see Net::IMAP.default_port

Net::IMAP.encode_utf7(str) -> String (10.0)

UTF-8 の文字列を modified UTF-7 の文字列に変換します。

UTF-8 の文字列を modified UTF-7 の文字列に変換します。

modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。

詳しくは Net::IMAP.encode_utf7 を見てください。

@param str 変換対象の UTF-8 でエンコードされた文字列
@see Net::IMAP.decode_utf7

絞り込み条件を変える

Net::IMAP.format_date(time) -> String (10.0)

時刻オブジェクトを IMAP の日付フォーマットでの文字列に変換します。

...時刻オブジェクトを IMAP の日付フォーマットでの文字列に変換します。

require 'net/imap'

Net::IMAP.format_date(Time.new(2011, 6, 20))
# => "20-Jun-2011"

@param time 変換する時刻オブジェクト...

Net::IMAP.format_datetime(time) -> String (10.0)

時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します

...時刻オブジェクトを IMAP の日付時刻フォーマットでの文字列に変換します

require 'net/imap'

Net::IMAP.format_datetime(Time.new(2011, 6, 20, 13, 20, 1))
# => "20-Jun-2011 13:20 +0900"

@param time 変換する時刻オブジェクト...

Net::IMAP.max_flag_count -> Integer (10.0)

サーバからのレスポンスに含まれる flag の上限を返します。

サーバからのレスポンスに含まれる flag の上限を返します。

これを越えた flag がレスポンスに含まれている場合は、
Net::IMAP::FlagCountError 例外が発生します。

@see Net::IMAP.max_flag_count=

Net::IMAP.max_flag_count=(count) (10.0)

サーバからのレスポンスに含まれる flag の上限を設定します。

サーバからのレスポンスに含まれる flag の上限を設定します。

これを越えた flag がレスポンスに含まれている場合は、
Net::IMAP::FlagCountError 例外が発生します。

デフォルトは 10000 です。通常は変える必要はないでしょう。

@param count 設定する最大値の整数
@see Net::IMAP.max_flag_count

Net::IMAP.new(host, options) -> Net::IMAP (10.0)

新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。

...同じです。
これの :ssl パラメータを使うことで、OpenSSL のパラメータを詳細に
調整できます。



require 'net/imap'

imap = Net::IMAP.new('imap.example.com', :port => 993,
:ssl => { :verify_mode => OpenSSL::SSL::VERIFY_PEER,...

絞り込み条件を変える

Net::IMAP.new(host, port = 143, usessl = false, certs = nil, verify = true) -> Net::IMAP (10.0)

新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。

...同じです。
これの :ssl パラメータを使うことで、OpenSSL のパラメータを詳細に
調整できます。



require 'net/imap'

imap = Net::IMAP.new('imap.example.com', :port => 993,
:ssl => { :verify_mode => OpenSSL::SSL::VERIFY_PEER,...