36件ヒット
[1-36件を表示]
(0.156秒)
別のキーワード
検索結果
-
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......e 'net/imap'
imap = Net::IMAP.new("imap.foo.net", "imap2")
imap.authenticate("cram-md5", "bar", "password")
imap.select("inbox")
fetch_thread = Thread.start { imap.fetch(1..-1, "UID") }
search_result = imap.search(["BODY", "hello"])
fetch_result = fetch_thread.value
imap.disconnect... -
Net
:: IMAP # disconnect -> nil (26101.0) -
サーバとの接続を切断します。
...サーバとの接続を切断します。
@see Net::IMAP#disconnected?... -
Net
:: IMAP # disconnected? -> bool (14106.0) -
サーバとの接続が切断されていれば真を返します。
...サーバとの接続が切断されていれば真を返します。
@see Net::IMAP#disconnect...