delete_all

delete_all(address, port = nil, account = nil, password = nil, isapop = false, &block)
Class Public methods

Starts a POP3 session and deletes all messages on the server. If a block is given, each POPMail object is yielded to it before being deleted.

This method raises a POPAuthenticationError if authentication fails.

Example

Net::POP3.delete_all('pop.example.com', 110,
                     'YourAccount', 'YourPassword') do |m|
  file.write m.pop
end
doc_ruby_on_rails
2015-04-22 05:12:51
Comments
Leave a Comment

Please login to continue.