SLING-9710 Provide a Mail Sending Scan Result Handler
remove date instantiation to make template compatible with Thymeleaf 3.0.12 (see Thymeleaf #809 and #816)
diff --git a/src/main/java/org/apache/sling/clam/result/internal/MailSendingScanResultHandlerConfiguration.java b/src/main/java/org/apache/sling/clam/result/internal/MailSendingScanResultHandlerConfiguration.java
index 483c46d..85ea6e4 100644
--- a/src/main/java/org/apache/sling/clam/result/internal/MailSendingScanResultHandlerConfiguration.java
+++ b/src/main/java/org/apache/sling/clam/result/internal/MailSendingScanResultHandlerConfiguration.java
@@ -77,8 +77,8 @@
+ "[# th:if=\"${index}\"]index: [(${index})][/]\n"
+ "size: [(${size})]\n"
+ "[# th:if=\"${userId}\"]userId: [(${userId})][/]\n"
- + "started: [(${#dates.formatISO(new java.util.Date(started))})]\n"
- + "timestamp: [(${#dates.formatISO(new java.util.Date(timestamp))})]\n";
+ + "started: [(${started})]\n"
+ + "timestamp: [(${timestamp})]\n";
@AttributeDefinition(
name = "Mail HTML",