Browse Source

fixed debug output

test
Stephan Richter 2 years ago
parent
commit
6fc9d5d484
  1. 2
      pom.xml
  2. 2
      src/main/java/de/srsoftware/widerhall/mail/ImapClient.java

2
pom.xml

@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
<groupId>org.example</groupId>
<artifactId>Widerhall</artifactId>
<version>0.2.57</version>
<version>0.2.58</version>
<build>
<plugins>
<plugin>

2
src/main/java/de/srsoftware/widerhall/mail/ImapClient.java

@ -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){
Folder folder = message.getFolder();
if (!folder.isOpen()) folder.open(Folder.READ_WRITE);

Loading…
Cancel
Save