Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Best way to check for new mails?

 
Sumanth R Prasad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.)

Thanx,
Sumanth
 
Look ma! I'm selling my stuff!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!