File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Other JSE/JEE APIs
IMAP Date Search ignoring the time
Joined: Feb 23, 2009
Feb 23, 2009 01:12:35
We are downloading the message using IMAP. It is working fine and downloaded the message. We want to download the message from server by the last mail downloaded time.
simpleDateFormat = new
("EEE MMM dd HH:mm:ss Z yyyy");
Date temprecvDate = simpleDateFormat.parse("Sun Feb 22 23:00:00 CST 2009");
recvDateTerm = new
messages = inboxFolder.search(term);
The following debug message we got
A4 OK [READ-ONLY] EXAMINE completed.
A5 SEARCH SINCE 22-Feb-2009 ALL
* SEARCH 24379 24380 ......
It seems to be search is disregarding the time in the search. How can we achieve this? I want to retrieving the message based on time.
thanks in advance
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: IMAP Date Search ignoring the time
awkward date string
Java date conversion confusion...
converting string yyyy/MM/dd to java.util.Date
Help for using Java Time
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014