cketti created JAMES-3753: ----------------------------- Summary: Bug in FlowedMessageUtils.deflow() can lead to quote characters being stripped Key: JAMES-3753 URL: https://issues.apache.org/jira/browse/JAMES-3753 Project: James Server Issue Type: Bug Reporter: cketti
When a quoted line ends with a space and is followed by an empty line (quote depth 0), the text isn't decoded properly. Example (the text "Quoted" is followed by a space, indicating a flowed line): {noformat} > Quoted Text {noformat} will be deflowed to {noformat} Quoted Text {noformat} [RFC 3676|https://datatracker.ietf.org/doc/html/rfc3676] specifically mentions this case: {quote}A generating agent MUST NOT create this situation; a receiving agent SHOULD handle it by giving preference to the quote depth. {quote} However, an email containing such data was encountered in the wild. See [https://github.com/k9mail/k-9/issues/6029]. -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org