[ https://issues.apache.org/jira/browse/JAMES-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350014#comment-17350014 ]
Andreas Valdma edited comment on JAMES-3590 at 5/23/21, 11:12 AM: ------------------------------------------------------------------ in that case, if anyone would want to use a predefined Jsoup validator level +- his own customisation for the matcher, then how would it look like. match="SanitizationMatcher= level: relaxed; tags=p,h1;removeTags=h2" ?? For me it seems weird if there is so complex string parsing involved. Are there any other matchers that do something like this? If that is ok than i could do it. Maybe just support the predefined jsoup validator levels for the matcher? What is your opinion? was (Author: andreasvaldma): in that case, if anyone would want to use a predefined Jsoup validator level +- his own customisation for the matcher, then how would it look like. match="SanitizationMatcher= level: relaxed; tags=p,h1;removeTags=h2" For me it seems weird if there is so complex string parsing involved. Are there any other matchers that do something like this? If that is ok than i could do it. Maybe just support the predefined jsoup validator levels for the matcher? What is your opinion? > Sanitization mailet and matcher > ------------------------------- > > Key: JAMES-3590 > URL: https://issues.apache.org/jira/browse/JAMES-3590 > Project: James Server > Issue Type: New Feature > Reporter: Andreas Valdma > Priority: Minor > > Add a matcher using Mime4J to find body parts that need sanitization > Add a mailet using Jsoup to sanitize html -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org