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
skype-for-business
azure-documentdb
kendo-ui
alasql
sql-server-2014
jenkins-pipeline
latex
watson-iot
checkpoint
zabbix
virtualhost
sitemap
webpack-dev-server
ldap-query
fine-uploader
opendaylight
github-flavored-markdown
hql
css-float
serenity-js
vala
angular2-pipe
handle
poisson
marionette
large-files
dynamic-memory-allocation
concrete5
boost-log
exacttarget
imdb
circle
snapkit
webspeech-api
restler
angularjs-resource
javax
headphones
respect-validation
oracle-bpm-suite
origami
lfe
usernotifications
office-interop
socketcluster
file-descriptor
jvisualvm
mtm
niagara-ax
weld
spring-webflow-2
easyquery
audio-fingerprinting
jcifs
richtext
aot
senti-wordnet
reloaddata
dbi
access-violation
django-celery
shtml
clique
std
android-contentresolver
imageicon
libgcrypt
notice
pushwoosh
dpkt
stderr
maven-archetype
xcode5
random-access
jsonmodel
redmine-plugins
javacompiler
cvi
html5-filesystem
mdp
mahara
facebook-likebox
surfaceview
pageload
blotter
dnsbl
tasklist
openafs
pdf-reader
bash4
umfpack
youtube.net-api
n2
html5-animation
arraycollection
iphone-maps
qprocess
lts
file-storage
unauthorized
stackless
memory-consumption

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