JavaMail: how to get new messages comparing with time-stamps
问题 I'm trying to get messages after a certain time-stamp, the way I've coded it was suggested by another programmer in this site: GregorianCalendar date = new GregorianCalendar(); SearchTerm newer = new ReceivedDateTerm(ComparisonTerm.GT,date.getTime()); Message msgs[] = folder.search(newerThen); The issue is that I get all the messages since the date, not the specific time. I was wondering if there is some work-around to emulate this. I mean, for an instance, if I want to get all the messages