Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.11.1
-
Novice
Description
Use of searchTerm.toSentDate=now-24h (to poll only mails older than 24 hours) throws NPE. This is because MailConverters#toSearchTerm tries to build "toSentDate" criteria from "fromSentDate" value:
if (simple.getToSentDate() != null) {
String s = simple.getFromSentDate();
if (s.startsWith("now")) {
The middle line should be:
String s = simple.getToSentDate();