aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail and today Watch "JavaMail and today New topic
Author

JavaMail and today's mails..

Amtul Schwab,
Greenhorn

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

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.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaMail and today's mails..