File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes JavaMail and today's mails.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail and today Watch "JavaMail and today New topic

JavaMail and today's mails..

Amtul Schwab,

Joined: Dec 07, 2004
Posts: 10
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,

Joined: Dec 07, 2004
Posts: 10
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

Joined: Oct 12, 2000
Posts: 5093
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.

I agree. Here's the link:
subject: JavaMail and today's mails..
It's not a secret anymore!