[
https://issues.apache.org/jira/browse/JAMES-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187660#comment-16187660
]
ASF GitHub Bot commented on JAMES-992:
--------------------------------------
Github user vVv-AA commented on a diff in the pull request:
https://github.com/apache/james-project/pull/73#discussion_r142057705
--- Diff:
mailet/standard/src/test/java/org/apache/james/transport/matchers/HasMimeTypeTest.java
---
@@ -0,0 +1,60 @@
+package org.apache.james.transport.matchers;
+
+import org.apache.james.core.MailAddress;
+import org.apache.mailet.base.test.FakeMail;
+import org.apache.mailet.base.test.FakeMatcherConfig;
+import org.apache.mailet.base.test.MimeMessageBuilder;
+import org.junit.Before;
+import org.junit.Test;
+
+import javax.mail.internet.MimeMessage;
+
+import static org.junit.Assert.assertNotNull;
+
+public class HasMimeTypeTest {
+
+ private HasMimeType matcher;
+ private final String RECIPIENT = "[email protected]";
+ private final String FROM = "[email protected]";
+ private final String MIME_TYPES = "multipart/mixed";
--- End diff --
You can specify multiple mime types in MIME_TYPES.
> Limit max line length for protocol when using Netty
> ---------------------------------------------------
>
> Key: JAMES-992
> URL: https://issues.apache.org/jira/browse/JAMES-992
> Project: James Server
> Issue Type: Improvement
> Reporter: Norman Maurer
> Fix For: 3.0-M1
>
>
> We should limit the max characters per line so nobody can cause OOM when
> doing a DOS attach
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]