You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Andreas Valdma (Jira)" <se...@james.apache.org> on 2021/05/23 11:13:00 UTC

[jira] [Comment Edited] (JAMES-3590) Sanitization mailet and matcher

    [ 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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org