| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Net/POPMail/ |
Upload File : |
U:RDoc::AnyMethod[iI"pop:EFI"Net::POPMail#pop;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"CThis method fetches the message. If called with a block, the ;TI"Emessage is yielded to the block one chunk at a time. If called ;TI"Iwithout a block, the message is returned as a String. The optional ;TI"D+dest+ argument will be prepended to the returned String; this ;TI"&argument is essentially obsolete.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli: textI"Example without block;T@o:RDoc::Markup::Verbatim; [I"(POP3.start('pop.example.com', 110,
;TI"7 'YourAccount, 'YourPassword') do |pop|
;TI"
n = 1
;TI"# pop.mails.each do |popmail|
;TI"- File.open("inbox/#{n}", 'w') do |f|
;TI" f.write popmail.pop
;TI"
end
;TI" popmail.delete
;TI" n += 1
;TI" end
;TI" end
;T:@format0S;;
i;I"Example with block;T@o;; [I"(POP3.start('pop.example.com', 110,
;TI"7 'YourAccount, 'YourPassword') do |pop|
;TI"
n = 1
;TI"# pop.mails.each do |popmail|
;TI"- File.open("inbox/#{n}", 'w') do |f|
;TI"2 popmail.pop do |chunk| ####
;TI" f.write chunk
;TI" end
;TI"
end
;TI" n += 1
;TI" end
;TI" end
;T;0o;
; [I"6This method raises a POPError if an error occurs.;T:
@fileI"lib/net/pop.rb;T:0@omit_headings_from_table_of_contents_below00I"message_chunk;F[[I"all;Fo;; [ ;@5;0[I" mail;Fo;; [ ;@5;0I"( dest = '' );T@5FI"POPMail;TcRDoc::NormalClass00