るりまサーチ

最速Rubyリファレンスマニュアル検索!
684件ヒット [1-100件を表示] (0.061秒)
トップページ > クエリ:|[x] > クエリ:net/imap[x]

別のキーワード

  1. net/smtp start
  2. net/imap name
  3. net/imap param
  4. net/http get
  5. net/imap data

検索結果

<< 1 2 3 ... > >>

net/imap (38042.0)

このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。

...り元とサブジェクトを表示する。
require 'net/imap'

imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.examine('INBOX')
imap.search(["RECENT"]).each do |message_id|
envelope = imap.fetch(message_id, "ENVELOPE")[0].attr["E...
...net/imap'

imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.select('Mail/sent-mail')
if not imap.list('Mail/', 'sent-apr03')
imap.create('Mail/sent-apr03')
end
imap.search(["BEFORE", "30-Apr-2003", "SINCE", "1-Apr-2003"]).each do |...
...message_id|
imap.copy(message_id, "Mail/sent-apr03")
imap.store(message_id, "+FLAGS", [:Deleted])
end
imap.expunge

=== スレッド安全性
Net::IMAP は並列実行をサポートしています。例として、

require 'net/imap'

imap = Net::IMAP.new("imap.foo.net", "imap2")...

Net::IMAP::BodyTypeMessage#body -> Net::IMAP::BodyTypeBasic | Net::IMAP::BodyTypeMessage | Net::IMAP::BodyTypeText | Net::IMAP::BodyTypeMultipart (8303.0)

ボディを返します。

ボディを返します。

Net::IMAP::BodyTypeMultipart#parts -> [Net::IMAP::BodyTypeBasic | Net::IMAP::BodyTypeText | Net::IMAP::BodyTypeMessage | Net::IMAP::BodyTypeMultipart] (8303.0)

マルチパートの各部分を返します。

マルチパートの各部分を返します。

Net::IMAP::BodyTypeBasic#language -> String | [String] | nil (8202.0)

1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。

1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。

Net::IMAP::BodyTypeMessage#language -> String | [String] | nil (8202.0)

1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。

1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。

絞り込み条件を変える

Net::IMAP::BodyTypeMultipart#language -> String | [String] | nil (8202.0)

1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。

1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。

Net::IMAP::BodyTypeText#language -> String | [String] | nil (8202.0)

1766 で定義されているボディ言語を表わす 文字列もしくは文字列の配列を返します。

1766 で定義されているボディ言語を表わす
文字列もしくは文字列の配列を返します。

Net::IMAP#add_response_handler(handler) {|resp| ...} -> () (8113.0)

レスポンスハンドラを追加します。

...ンドラはメインのスレッドとは別のスレッドで
呼びだされることに注意してください。

例:

imap.add_response_handler do |resp|
p resp
end

@param handler 追加するハンドラ(Proc や Method オブジェクト)
@see Net::IMAP#remove_response_handler...

Net::IMAP#expunge -> [Integer] | nil (8101.0)

EXPUNGEコマンドを送り、:Deletedフラグをセットしたメッセージを すべて処理中のメールボックスから削除します。

EXPUNGEコマンドを送り、:Deletedフラグをセットしたメッセージを
すべて処理中のメールボックスから削除します。

削除したメッセージの message sequence number を配列で返します。

@raise Net::IMAP::NoResponseError メールボックスが read-only である場合に発生します
<< 1 2 3 ... > >>