60件ヒット
[1-60件を表示]
(0.058秒)
検索結果
先頭5件
-
net
/ imap (38036.0) -
このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。
...UID が振り直されます。
=== 例
デフォルトのメールボックス(INBOX)の送り元とサブジェクトを表示する。
require 'net/imap'
imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.examine('INBOX')
imap.search.......from[0].name}: \t#{envelope.subject}"
end
2003年4月のメールをすべて Mail/sent-mail から "Mail/sent-apr03" へ移動させる
require 'net/imap'
imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.select('Mail/sent-mail')
i......LAGS", [:Deleted])
end
imap.expunge
=== スレッド安全性
Net::IMAP は並列実行をサポートしています。例として、
require 'net/imap'
imap = Net::IMAP.new("imap.foo.net", "imap2")
imap.authenticate("cram-md5", "bar", "password")
imap.select("inbox")
fetch_thread... -
Net
:: IMAP . format _ date(time) -> String (8012.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 (8012.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 . new(host , options) -> Net :: IMAP (8012.0) -
新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。
...ams と同じです。
これの :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 (8012.0) -
新たな Net::IMAP オブジェクトを生成し、指定したホストの 指定したポートに接続し、接続語の IMAP オブジェクトを返します。
...ams と同じです。
これの :ssl パラメータを使うことで、OpenSSL のパラメータを詳細に
調整できます。
例
require 'net/imap'
imap = Net::IMAP.new('imap.example.com', :port => 993,
:ssl => { :verify_mode => OpenSSL::SSL::VERIFY_PEER,...