Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail and today's mails..

 
Amtul Schwab,
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
i am using java mail api to get list of mails in my outlook..
But i need to display the messages only of current date..i.e. todays emails' list to be displayed..
DO we have any method in java mail api that can retrieve surrent date's mails?
Thanx in advance...
 
Amtul Schwab,
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mr.Moderator!
I think you must try to answer my question...if you have got time to see this thread!
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
noone MUST do anything here...

If you look at javax.mail.Message you will find functions to figure out the date a message was sent and received.
Simply look at those to decide whether a message falls within the interval you want to show and you're set.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic