るりまサーチ

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

検索結果

<< < 1 2 >>

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

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

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

@see Net::IMAP.default_port

Net::IMAP.encode_utf7(str) -> String (3.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 (3.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 (3.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 (3.0)

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

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

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

@see Net::IMAP.max_flag_count=

絞り込み条件を変える

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

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

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

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

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

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

Net::IMAP.new(host, options) -> Net::IMAP (3.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 (3.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,...
<< < 1 2 >>