我想在今天和15天之前搜索电子邮件。
ReceivedDateTerm fromDate=new ReceivedDateTerm(ComparisonTerm.LE, new Date(2017, 02, 16));
ReceivedDateTerm toDate=new ReceivedDateTerm(ComparisonTerm.GE, new Date(2017, 02, 01));
SearchTerm term=new AndTerm(toDate, fromDate);
Message messages[] = folder.search(term);
System.out.println("Total Messages : "+messages.length);
it is showing 0 result;
但它不起作用; 那怎么办呢?