D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Net
/
POP3
/
Filename :
start-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: pop comment: - !ruby/struct:SM::Flow::P body: Creates a new POP3 object and open the connection. Equivalent to - !ruby/struct:SM::Flow::VERB body: " Net::POP3.new(address, port, isapop).start(account, password)\n" - !ruby/struct:SM::Flow::P body: If <tt>block</tt> is provided, yields the newly-opened POP3 object to it, and automatically closes it at the end of the session. - !ruby/struct:SM::Flow::H level: 3 text: Example - !ruby/struct:SM::Flow::VERB body: " Net::POP3.start(addr, port, account, password) do |pop|\n pop.each_mail do |m|\n file.write m.pop\n m.delete\n end\n end\n" full_name: Net::POP3::start is_singleton: true name: start params: (address, port = nil, account = nil, password = nil, isapop = false) {|pop| ...} visibility: public