|
|
@ -154,7 +154,7 @@ public class ImapClient { |
|
|
|
Date receivedDate = message.getReceivedDate(); |
|
|
|
Date receivedDate = message.getReceivedDate(); |
|
|
|
Duration duration = Duration.between(receivedDate.toInstant(),now.toInstant()); |
|
|
|
Duration duration = Duration.between(receivedDate.toInstant(),now.toInstant()); |
|
|
|
var days = duration.toDays(); |
|
|
|
var days = duration.toDays(); |
|
|
|
LOG.info("Message {} is {} days old!"); |
|
|
|
LOG.info("Message {} is {} days old!",days); |
|
|
|
if (days > holdTime){ |
|
|
|
if (days > holdTime){ |
|
|
|
Folder folder = message.getFolder(); |
|
|
|
Folder folder = message.getFolder(); |
|
|
|
if (!folder.isOpen()) folder.open(Folder.READ_WRITE); |
|
|
|
if (!folder.isOpen()) folder.open(Folder.READ_WRITE); |
|
|
|