mail-gem


How to retrieve only unread emails with ruby mail gem?


I am trying to retrieve emails with ruby mail gem, in the examples it says that Mail.last will retrieve the last unread email https://github.com/mikel/mail#getting-emails-from-a-pop-server but it returns just the last email no matter whether it has been read before or not.
Does anybody know how to get only unread emails?
This question was answered in Need help on reading emails with "mail" gem in ruby
However the answer was not accepted - donĀ“t know why. Also the question did not mention "unread email" nor the [mail-gem] tag so it was not obvious to search.
The answer points to the solution on the ruby-gem issues report https://github.com/mikel/mail/issues/258

Related Links

How to retrieve only unread emails with ruby mail gem?

Categories

HOME
autohotkey
macros
mobile
sql-server-2014
ns2
process
microcontroller
opc-ua
grid
android-webview
restheart
dcos
osrm
camunda
game-engine
reportlab
vivado-hls
project-structure
udeploy
react-jsx
ampscript
url-parameters
android-wifi
minimagick
uipath
apdu
ckeditor4.x
sasl
traveling-salesman
mex
drombler-fx
marionette
boost-log
akamai
keil
directions
webmock
wit-ai
mkdir
ponylang
ragel
respect-validation
gstreamer-1.0
stochastic-process
mongoid5
matrix-multiplication
ui-grid
amazon-rds-aurora
ocpjp
spring-ide
g77
ionic2-select
noise
visio-2010
jenkins-docker
senti-wordnet
blackberry
printer-control-language
scanf
recursive-query
ownership
easy68k
networkstream
angular-i18n
user-profile
usps
factorization
abstract
wizard
dcast
transport
self-join
android-togglebutton
log4cxx
pdcurses
cakephp-2.6
esb-toolkit-2.1
system.diagnostics
sicstus-prolog
copy-on-write
uiblureffect
windows-search
msdropdown
rails-migrations
azure-caching
boofcv
angularjs-select2
maven-webstart-plugin
django-tinymce
quit
correctness
github-archive
jmesa
joomla1.7
log-shipping
xpolog
windows-xp-embedded
method-call
xhtmlrenderer
response-time
rollover
lgpl
dongle
for-xml
helios
ihtmldocument2
projectgen
html-help-workshop
unauthorized
stackless

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App