Skip to content
Permalink
Browse files
MIME4J-255 Add method to allow setting of "no recurse" mode to underl…
…ying mime token stream
  • Loading branch information
dicer authored and chibenwa committed May 3, 2021
1 parent 86ba41d commit 302e49d0448bbfa571cfb2a44a0edc4edf3a1a3b
Showing 1 changed file with 8 additions and 0 deletions.
@@ -215,6 +215,14 @@ public void setRecurse() {
mimeTokenStream.setRecursionMode(RecursionMode.M_RECURSE);
}

/**
* 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

0 comments on commit 302e49d

Please sign in to comment.