48件ヒット
[1-48件を表示]
(0.031秒)
種類
- インスタンスメソッド (24)
- ライブラリ (12)
- 文書 (12)
ライブラリ
-
net
/ imap (24)
クラス
-
Net
:: IMAP (24)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (12) - select (12)
検索結果
先頭4件
-
net
/ imap (38024.0) -
このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。
...振り直されます。
=== 例
デフォルトのメールボックス(INBOX)の送り元とサブジェクトを表示する。
require 'net/imap'
imap = Net::IMAP.new('mail.example.com')
imap.authenticate('LOGIN', 'joe_user', 'joes_password')
imap.examine('INBOX')
imap.search(["RECE......].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')
if not i......マンドの送信とは非同期的にサーバから送られるため、
Net::IMAP オブジェクトはユーザのためこれを
Net::IMAP#responses に記録しておきます。
=== References
* [IMAP]
M. Crispin, "INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1",
RFC 2060, Dece... -
Net
:: IMAP # responses -> { String => [object] } (26113.0) -
サーバから送られてきた untagged な応答の記録を返します。
...なります。
そして各種類ごとに配列が用意され、untagged な応答を受信するたびに
その配列の末尾にその内容が記録されます。
例:
imap.select("inbox")
p imap.responses["EXISTS"].last
#=> 2
p imap.responses["UIDVALIDITY"].last
#=> 968263756... -
Net
:: IMAP # select(mailbox) -> Net :: IMAP :: TaggedResponse (8012.0) -
SELECT コマンドを送り、指定したメールボックスを処理対象の メールボックスにします。
...elected」になります。
このコマンドを実行した直後に Net::IMAP#responses["EXISTS"].last
を調べると、メールボックス内のメールの数がわかります。
また、Net::IMAP#responses["RECENT"].lastで、
最新のメールの数がわかります。
これらの... -
NEWS for Ruby 2
. 0 . 0 (12.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...may be created from a URI which sets the request_uri and host
header of the request (but does not change the host connected to).
* Responses contain the URI requested which allows easier implementation of
redirect following.
* 追加: Net::HTTP#local_host
* 追加: Net......追加: Net::HTTP#local_port
* 追加: Net::HTTP#local_port=
* 拡張: Net::HTTP#connect uses local_host and local_port if specified.
* net/imap
* 追加: Net::IMAP.default_port
* 追加: Net::IMAP.default_imap_port
* 追加: Net::IMAP.default_tls_port
* 追加: Net::IMAP....