99件ヒット
[1-99件を表示]
(0.190秒)
ライブラリ
-
cgi
/ html (55) -
net
/ imap (22) -
rexml
/ document (22)
クラス
-
Net
:: IMAP (11) -
Net
:: IMAP :: FetchData (11) -
REXML
:: Attributes (22)
モジュール
-
CGI
:: HtmlExtension (55)
キーワード
- fetch (11)
-
file
_ field (11) - length (11)
-
password
_ field (11) -
scrolling
_ list (11) -
text
_ field (11)
検索結果
先頭5件
-
Net
:: IMAP :: FetchData # attr -> { String => object } (18214.0) -
各メッセージのアトリビュートの値をハッシュテーブルで返します。
...。文字列。
ただしこれで内容を見ても :Seen フラグを設定しない点が
BODY[<section>]と同様
: BODYSTRUCTURE
MIME-IMB でのメッセージボディ。
Net::IMAP::BodyTypeBasic, Net::IMAP::BodyTypeText,
Net::IMAP::BodyTypeMessage, Net::IMAP::BodyTypeMulti......の内部日付。文字列。
: RFC822
BODY[] と同じ。文字列。
: RFC822.HEADER
BODY.PEEK[HEADER] と同じ。文字列。
: RFC822.SIZE
メッセージの 822 サイズ。整数。
: RFC822.TEXT
BODY[TEXT] と同じ。文字列。
: UID
UID。整数。
詳しくは 2060... -
REXML
:: Attributes # size -> Integer (18202.0) -
属性の個数を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
REXML
:: Attributes # length -> Integer (3102.0) -
属性の個数を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
Net
:: IMAP # fetch(set , attr) -> [Net :: IMAP :: FetchData] (286.0) -
FETCH コマンドを送り、メールボックス内のメッセージに 関するデータを取得します。
...します。
attr には取得するアトリビュートを文字列の配列で渡してください。
指定可能なアトリビュートについては Net::IMAP::FetchData#attr
を見てください。
例:
p imap.fetch(6..8, "UID")
#=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}......tchData seqno=7, attr={"UID"=>99}>, #<Net::IMAP::FetchData seqno=8, attr={"UID"=>100}>]
p imap.fetch(6, "BODY[HEADER.FIELDS (SUBJECT)]")
#=> [#<Net::IMAP::FetchData seqno=6, attr={"BODY[HEADER.FIELDS (SUBJECT)]"=>"Subject: test\r\n\r\n"}>]
data = imap.uid_fetch(98, ["RFC822.SIZE", "INTERNALDAT......E"])[0]
p data.seqno
#=> 6
p data.attr["RFC822.SIZE"]
#=> 611
p data.attr["INTERNALDATE"]
#=> "12-Oct-2000 22:40:59 +0900"
p data.attr["UID"]
#=> 98
@param set 処理対象のメッセージの sequence number
@param attr アトリビュート(文字列配列)
@see Net::IMAP#uid_fet... -
CGI
:: HtmlExtension # file _ field(attributes) -> String (219.0) -
タイプが file である input 要素を生成します。
...タイプが file である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
file_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40">... -
CGI
:: HtmlExtension # popup _ menu(attributes) -> String (213.0) -
select 要素を生成します。
...成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2">
# <OP... -
CGI
:: HtmlExtension # scrolling _ list(attributes) -> String (213.0) -
select 要素を生成します。
...成します。
@param attributes 属性をハッシュで指定します。
例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2">
# <OP... -
CGI
:: HtmlExtension # text _ field(attributes) -> String (208.0) -
タイプが text である input 要素を生成します。
...タイプが text である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
text_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="text" NAME="name" VALUE="value">... -
CGI
:: HtmlExtension # password _ field(attributes) -> String (207.0) -
タイプが password である input 要素を生成します。
...タイプが password である input 要素を生成します。
@param attributes 属性をハッシュで指定します。
例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value">...