Register / Login
Win a copy of
Kotlin in Action
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Other JSE/JEE APIs
Best way to check for new mails?
Sumanth R Prasad
posted 12 years ago
Can anyone plz suggest me the best way to check for new messages in a mail Folder at regular intervals.
I know that a message can be checked if its new using the Flags.Flag.RECENT or SEEN flags.
But in a folder of 500 messages, checking each & every msg wouldn't be the best method I suppose.
Anything more efficient?? Would really appreciate it.
(P.S : I need to do this on an IMAP server, just FYI.)
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
Boost this thread!
using ClassPathXmlApplicationContext to load beans
Multi line messages
JSF check if message is empty
Generics and return-type substitutability
which is the best technique to connect jsp with database