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