JAMES-2560 Document ICSSanitizer

Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/2d3691db
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/2d3691db
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/2d3691db

Branch: refs/heads/master
Commit: 2d3691db87ca6b5260a28b5d5a19dc011517bdee
Parents: d722432
Author: Benoit Tellier <[email protected]>
Authored: Thu Oct 11 13:22:15 2018 +0700
Committer: Benoit Tellier <[email protected]>
Committed: Fri Oct 12 15:26:53 2018 +0700

----------------------------------------------------------------------
 .../org/apache/james/transport/mailets/ICSSanitizer.java    | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/2d3691db/mailet/icalendar/src/main/java/org/apache/james/transport/mailets/ICSSanitizer.java
----------------------------------------------------------------------
diff --git 
a/mailet/icalendar/src/main/java/org/apache/james/transport/mailets/ICSSanitizer.java
 
b/mailet/icalendar/src/main/java/org/apache/james/transport/mailets/ICSSanitizer.java
index bdbdb2b..667120b 100644
--- 
a/mailet/icalendar/src/main/java/org/apache/james/transport/mailets/ICSSanitizer.java
+++ 
b/mailet/icalendar/src/main/java/org/apache/james/transport/mailets/ICSSanitizer.java
@@ -40,6 +40,15 @@ import org.slf4j.LoggerFactory;
 
 import com.github.fge.lambdas.Throwing;
 
+/**
+ * Some senders embed 'text/calendar' content as part of Mime bodypart headers 
with an empty body.
+ *
+ * This mailet duplicate the 'text/calendar' content to the Mime body part.
+ *
+ * Example configuration:
+ *
+ * &lt;mailet match="All" class="ICSSanitizer"/&gt;
+ */
 public class ICSSanitizer extends GenericMailet {
     private static final Logger LOGGER = 
LoggerFactory.getLogger(ICSSanitizer.class);
     private static final int TEXT_PREFIX_SIZE = 5;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to