Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Net
/
IMAP
/
//opt/alt/ruby21/share/ri/2.1.0/system/Net/IMAP/fetch-i.ri
U:RDoc::AnyMethod[iI" fetch:EFI"Net::IMAP#fetch;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FSends a FETCH command to retrieve data associated with a message ;TI"Din the mailbox. The +set+ parameter is a number or an array of ;TI"Anumbers or a Range object. The number is a message sequence ;TI"?number. +attr+ is a list of attributes to fetch; see the ;TI"@documentation for Net::IMAP::FetchData for a list of valid ;TI"attributes. ;TI"GThe return value is an array of Net::IMAP::FetchData. For example:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"p imap.fetch(6..8, "UID") ;TI"@#=> [#<Net::IMAP::FetchData seqno=6, attr={"UID"=>98}>, \\ ;TI"@ #<Net::IMAP::FetchData seqno=7, attr={"UID"=>99}>, \\ ;TI"> #<Net::IMAP::FetchData seqno=8, attr={"UID"=>100}>] ;TI"6p imap.fetch(6, "BODY[HEADER.FIELDS (SUBJECT)]") ;TI"l#=> [#<Net::IMAP::FetchData seqno=6, attr={"BODY[HEADER.FIELDS (SUBJECT)]"=>"Subject: test\r\n\r\n"}>] ;TI"Cdata = imap.uid_fetch(98, ["RFC822.SIZE", "INTERNALDATE"])[0] ;TI"p data.seqno ;TI"#=> 6 ;TI" p data.attr["RFC822.SIZE"] ;TI" #=> 611 ;TI"!p data.attr["INTERNALDATE"] ;TI"&#=> "12-Oct-2000 22:40:59 +0900" ;TI"p data.attr["UID"] ;TI"#=> 98;T:@format0: @fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(set, attr);T@&FI" IMAP;TcRDoc::NormalClass00