U:RDoc::AnyMethod[iI" search:EFI"Net::IMAP#search;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"DSends a SEARCH command to search the mailbox for messages that ;TI"Fmatch the given searching criteria, and returns message sequence ;TI"@numbers. +keys+ can either be a string holding the entire ;TI"Gsearch string, or a single-dimension array of search keywords and ;TI"@arguments. The following are some common search criteria; ;TI".see [IMAP] section 6.4.4 for a full list.;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: NOTE: @items[o:RDoc::Markup::ListItem: @label[I";T; [o; ; [I"7a set of message sequence numbers. ',' indicates ;TI"8an interval, ':' indicates a range. For instance, ;TI"('2,10:12,15' means "2,10,11,12,15".;T@o;;[I"BEFORE ;T; [o; ; [I"4messages with an internal date strictly before ;TI"5. The date argument has a format similar ;TI"to 8-Aug-2002.;T@o;;[I"BODY ;T; [o; ; [I"6messages that contain within their body.;T@o;;[I"CC ;T; [o; ; [I"4messages containing in their CC field.;T@o;;[I"FROM ;T; [o; ; [I"8messages that contain in their FROM field.;T@o;;[I"NEW;T; [o; ; [I";T; [o; ; [I"%negate the following search key.;T@o;;[I"!OR ;T; [o; ; [I"#"or" two search keys together.;T@o;;[I"ON ;T; [o; ; [I"=messages with an internal date exactly equal to , ;TI".which has a format similar to 8-Aug-2002.;T@o;;[I"SINCE ;T; [o; ; [I"7messages with an internal date on or after .;T@o;;[I"SUBJECT ;T; [o; ; [I"-messages with in their subject.;T@o;;[I"TO ;T; [o; ; [I".messages with in their TO field.;T@o; ; [I"For example:;T@o:RDoc::Markup::Verbatim; [I"7p imap.search(["SUBJECT", "hello", "NOT", "NEW"]) ;TI"#=> [1, 6, 7, 8];T: @format0: @fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[I"(keys, charset = nil);T@vFI" IMAP;TcRDoc::NormalClass00