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 bt...@apache.org on 2021/05/03 08:16:09 UTC
[james-mime4j] branch master updated: MIME4J-255 Add method to
allow setting of "no recurse" mode to underlying mime token stream
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-mime4j.git
The following commit(s) were added to refs/heads/master by this push:
new 302e49d MIME4J-255 Add method to allow setting of "no recurse" mode to underlying mime token stream
302e49d is described below
commit 302e49d0448bbfa571cfb2a44a0edc4edf3a1a3b
Author: Felix Knecht <gi...@felixknecht.de>
AuthorDate: Mon Nov 2 21:43:33 2015 +0800
MIME4J-255 Add method to allow setting of "no recurse" mode to underlying mime token stream
---
.../java/org/apache/james/mime4j/parser/MimeStreamParser.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/core/src/main/java/org/apache/james/mime4j/parser/MimeStreamParser.java b/core/src/main/java/org/apache/james/mime4j/parser/MimeStreamParser.java
index 11223d6..d72124c 100644
--- a/core/src/main/java/org/apache/james/mime4j/parser/MimeStreamParser.java
+++ b/core/src/main/java/org/apache/james/mime4j/parser/MimeStreamParser.java
@@ -216,6 +216,14 @@ public class MimeStreamParser {
}
/**
+ * Disables recursive mode. In this mode rfc822 parts are not
+ * recursively parsed.
+ */
+ public void setNoRecurse() {
+ mimeTokenStream.setRecursionMode(RecursionMode.M_NO_RECURSE);
+ }
+
+ /**
* Finishes the parsing and stops reading lines.
* NOTE: No more lines will be parsed but the parser
* will still call
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org