File: //usr/local/rvm/gems/default/doc/mail-2.7.1/ri/Mail/POP3/cdesc-POP3.ri
U:RDoc::NormalClass[iI" POP3:ETI"Mail::POP3;TI"Mail::Retriever;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"XThe Pop3 retriever allows to get the last, first or all emails from a POP3 server. ;TI"IEach email retrieved (RFC2822) is given as an instance of +Message+.;To:RDoc::Markup::BlankLine o; ;[I"FWhile being retrieved, emails can be yielded if a block is given.;T@S:RDoc::Markup::Heading:
leveli: textI"-Example of retrieving Emails from GMail:;T@o:RDoc::Markup::Verbatim;[I"Mail.defaults do
;TI"J retriever_method :pop3, { :address => "pop.gmail.com",
;TI"> :port => 995,
;TI"G :user_name => '<username>',
;TI"G :password => '<password>',
;TI"@ :enable_ssl => true }
;TI" end
;TI"
;TI"4Mail.all #=> Returns an array of all emails
;TI"4Mail.first #=> Returns the first unread email
;TI"3Mail.last #=> Returns the last unread email
;T:@format0o; ;[I"UYou can also pass options into Mail.find to locate an email in your pop mailbox ;TI" with the following options:;T@o;;[I"9what: last or first emails. The default is :first.
;TI"`order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
;TI"[count: number of emails to retrieve. The default value is 10. A value of 1 returns an
;TI"D instance of Message, not an array of Message instances.
;TI"
;TI">Mail.find(:what => :first, :count => 10, :order => :asc)
;TI"7#=> Returns the first 10 emails in ascending order;T;0:
@fileI"/lib/mail/network/retriever_methods/pop3.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[[
I"
settings;TI"RW;T:publicFI"/lib/mail/network/retriever_methods/pop3.rb;T[ [ [[I"
class;T[[;[[I"new;T@7[:protected[ [:private[ [I"
instance;T[[;[[I"connection;T@7[I"delete_all;T@7[I" find;T@7[;[ [;[[I"
start;T@7[I"validate_options;T@7[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@2I" Mail;TcRDoc::NormalModule