https://github.com/mikel/mail
Ruby
A Really Ruby Mail Library
Mail::Retriever#first
Get the oldest received email(s) Possible options: count: number of emails to retrieve. The default value is 1. order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
Edit
git clone [email protected]:mikel/mail.git
cd mail
open lib/mail/network/retriever_methods/base.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mail--Retriever-first-for-pr
# Commit to gitgit add lib/mail/network/retriever_methods/base.rbgit commit -m "better docs for Mail::Retriever#first"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mail--Retriever-first-for-pr
hub pull-request
# Celebrate!