This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IMAP Date Search ignoring the time

Pandiya Raj
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

code is,

SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yyyy");
Date temprecvDate = simpleDateFormat.parse("Sun Feb 22 23:00:00 CST 2009");
ReceivedDateTerm recvDateTerm = new ReceivedDateTerm(ReceivedDateTerm.GT, temprecvDate);
messages =;

The following debug message we got

A4 OK [READ-ONLY] EXAMINE completed.
* 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
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic