D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Net
/
POP3
/
Filename :
delete_all-i.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: message comment: - !ruby/struct:SM::Flow::P body: Deletes all messages on the server. - !ruby/struct:SM::Flow::P body: If called with a block, yields each message in turn before deleting it. - !ruby/struct:SM::Flow::H level: 3 text: Example - !ruby/struct:SM::Flow::VERB body: " n = 1\n pop.delete_all do |m|\n File.open("inbox/#{n}") do |f|\n f.write m.pop\n end\n n += 1\n end\n" - !ruby/struct:SM::Flow::P body: This method raises a POPError if an error occurs. full_name: Net::POP3#delete_all is_singleton: false name: delete_all params: ( {|message| ...} visibility: public