default_pop3_port

default_pop3_port() Class Public methods The default port for POP3 connections, port 110

default_pop3s_port

default_pop3s_port() Class Public methods The default port for POP3S connections, port 995

default_port

default_port() Class Public methods returns the port for POP3

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

disable_ssl

disable_ssl() Class Public methods Disable SSL for all new instances.

enable_ssl

Net::POP.enable_ssl(params = {}) Class Public methods Enable SSL for all new instances. params is passed to OpenSSL::SSLContext#set_params.

foreach

foreach(address, port = nil, account = nil, password = nil, isapop = false) Class Public methods Starts a POP3 session and iterates over each POPMail object, yielding it to the block. This method is equivalent to: Net::POP3.start(address, port, account, password) do |pop| pop.each_mail do |m| yield m end end This method raises a POPAuthenticationError if authentication fails. Example Net::POP3.foreach('pop.example.com', 110, 'YourAccount', 'YourPassword')

new

new(addr, port = nil, isapop = false) Class Public methods Creates a new POP3 object. address is the hostname or ip address of your POP3 server. The optional port is the port to connect to. The optional isapop specifies whether this connection is going to use APOP authentication; it defaults to false. This method does not open the TCP connection.

ssl_params

ssl_params() Class Public methods returns the SSL Parameters see also ::enable_ssl

start

start(address, port = nil, account = nil, password = nil, isapop = false) Class Public methods Creates a new POP3 object and open the connection. Equivalent to Net::POP3.new(address, port, isapop).start(account, password) If block is provided, yields the newly-opened POP3 object to it, and automatically closes it at the end of the session. Example Net::POP3.start(addr, port, account, password) do |pop| pop.each_mail do |m| file.write m.pop m.delete end end