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 "cketti (Jira)" <se...@james.apache.org> on 2022/04/21 00:54:00 UTC
[jira] [Created] (JAMES-3753) Bug in FlowedMessageUtils.deflow() can lead to quote characters being stripped
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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org