This is an automated email from the ASF dual-hosted git repository. rcordier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit ceb6a95132ad4a4cdb7e3973a75f990ab7d8aeae Author: Raphael Ouazana <[email protected]> AuthorDate: Wed Jun 3 16:20:49 2020 +0200 JAMES-3200 Fix qcontent rule in MDN parser --- .../java/org/apache/james/mdn/MDNReportParser.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/mdn/src/main/java/org/apache/james/mdn/MDNReportParser.java b/mdn/src/main/java/org/apache/james/mdn/MDNReportParser.java index a1dc416..0a6c1f1 100644 --- a/mdn/src/main/java/org/apache/james/mdn/MDNReportParser.java +++ b/mdn/src/main/java/org/apache/james/mdn/MDNReportParser.java @@ -260,9 +260,26 @@ public class MDNReportParser { return Ch((char)0x22); } + // obs-qtext = obs-NO-WS-CTL + Rule obsQtext() { + return obsNoWsCtl(); + } + + /* qtext = %d33 / ; Printable US-ASCII + %d35-91 / ; characters not including + %d93-126 / ; "\" or the quote character + obs-qtext */ + Rule qtext() { + return FirstOf( + (char)33, + CharRange((char)35, (char)91), + CharRange((char)93, (char)126), + obsQtext()); + } + // qcontent = qtext / quoted-pair Rule qcontent() { - return FirstOf(qcontent(), quotedPair()); + return FirstOf(qtext(), quotedPair()); } // domain = dot-atom / domain-literal / obs-domain --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
