33件ヒット
[1-33件を表示]
(0.072秒)
キーワード
-
digest
/ md5 (11) -
net
/ imap (11) -
net
/ smtp (11)
検索結果
先頭3件
-
digest
/ md5 (6033.0) -
1321 に記述されている RSA Data Security, Inc. の MD5 Message-Digest Algorithmを実装するクラスを提供するライブラリです。
...1321 に記述されている RSA Data Security, Inc. の MD5 Message-Digest
Algorithmを実装するクラスを提供するライブラリです。... -
net
/ imap (127.0) -
このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。
...て 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 imap.list('Mail/', 'sent-apr03')
imap.create('Mail/sent-apr03')
en......d
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")
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.... -
net
/ smtp (25.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...でおすすめです。
require 'net/smtp'
Net::SMTP.start( 'smtp.example.com', 25 ) {|smtp|
# use smtp object only in this block
}
smtp-server.example.com は適切な SMTP サーバのアドレスに読みかえてください。
通常は LAN の管理者やプロバイダが SMTP......tp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your Name <from@example.com>
To: Dest Address <to@example.net>
Subject: test mail
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-Id: <unique.message.id.string@yourhost.example.com>......には ISP のメール
サーバのドメインを使っておけばたいてい通ります。
=== SMTP認証
Net::SMTP は PLAIN, LOGIN, CRAM MD5 の3つの方法で認証をすることができます。
(認証については 2554, 2195 を参照してください)
認証するためには...