36件ヒット
[1-36件を表示]
(0.033秒)
別のキーワード
クラス
-
Net
:: IMAP (36)
キーワード
-
add
_ response _ handler (24) - append (12)
検索結果
先頭3件
-
Net
:: IMAP # append(mailbox , message , flags = nil , date _ time = nil) -> Net :: IMAP :: TaggedResponse (6127.0) -
APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com
hello world
EOF
@param mailbox メッセー......ジを追加するメールボックス名(文字列)
@param message メッセージ文字列
@param flags メッセージに付加するフラグ(Symbol の配列)
@param date_time メッセージの時刻(Time オブジェクト)。省略時は現在時刻が使われる
@raise Net::IMAP::NoRespon... -
Net
:: IMAP # add _ response _ handler(handler) -> () (15.0) -
レスポンスハンドラを追加します。
...ンドラはメインのスレッドとは別のスレッドで
呼びだされることに注意してください。
例:
imap.add_response_handler do |resp|
p resp
end
@param handler 追加するハンドラ(Proc や Method オブジェクト)
@see Net::IMAP#remove_response_handler... -
Net
:: IMAP # add _ response _ handler(handler) {|resp| . . . } -> () (15.0) -
レスポンスハンドラを追加します。
...ンドラはメインのスレッドとは別のスレッドで
呼びだされることに注意してください。
例:
imap.add_response_handler do |resp|
p resp
end
@param handler 追加するハンドラ(Proc や Method オブジェクト)
@see Net::IMAP#remove_response_handler...