るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.118秒)

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer times
  5. integer downto

ライブラリ

クラス

検索結果

Net::IMAP#uid_search(keys, charset = nil) -> [Integer] (21327.0)

UID SEARCH コマンドを送り、条件に合うメッセージの UID を配列で返します。

...UID
を配列で返します。

Net::IMAP#examine もしくは Net::IMAP#select
指定したメールボックスを検索対象とします。

検索の条件は key に文字列の1次元配列もしくは文字列で渡します。

検索条件は "SUBJECT", "FROM" などを用いること...
....uid_search(["SUBJECT", "hello"])
#=> [1, 6, 7, 8]
p imap.uid_search(["SUBJECT", "hello", "FROM", "foo@example.com"])
#=> [6, 7]
p imap.uid_search('SUBJECT "hello"')
#=> [1, 6, 7, 8]

@param key 検索キー(文字列の配列もしくは文字列)
@param charset 検索に用いるcharset...
...@see Net::IMAP#uid_search...