Composer: Signatures in HTML inserted into the quote on reply
I'm using evolution 3.38.1-1 on Ubuntu 20.10. When replying to messages written in evolution in HTML, the signature is inserted into the quote. Consider the screenshot below, where I'm replying for the second time to my own message. The first two messages did not contain any signature. The reply does contain one, but it's inserted into the quote.
Some other observations as to the circumstances of the issue:
- This happens regardless of the composition style, i.e. start reply above/below the quote and place signature above/below it.
- The problem is there only in HTML mode. The format of the quote (HTML vs. plain text) doesn't matter.
- When starting the editing in plain text, thus dropping the HTML formatting, and switching to HTML, everything is OK.
- When starting in HTML and switching the editing mode to plain text, and then returning to HTML, the problem disappears, but the originally misplaced signature remains in the quote. The effect is that there are now two signatures — see the screenshot below.
- Even stranger, when the original message contains a different signature, it's replaced by the new one.
- There is no issue when replying to your own message sent from another client (I checked against Thunderbird).
- The converse is also true — using Thunderbird to reply to a message written in evolution works fine.
As it appears to be a problem with HTML formatting, I'm including sources of some messages below.
The original message:
<html>
<head></head>
<body>
<div>test2</div>
<div>On Tue, 2021-04-20 at 19:32 +0200, wrote:</div>
<blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test</div>
<div class=3D"-x-evo-signature-wrapper">
<span class=3D"-x-evo-signature" id=3D"none"></span>
</div>
</blockquote>
</body>
</html>
The corrupted reply:
<html>
<head></head>
<body>
<div>On Tue, 2021-04-20 at 19:33 +0200, wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test2</div>
<div>On Tue, 2021-04-20 at 19:32 +0200, wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test</div>
<div class="-x-evo-signature-wrapper">
<span class="-x-evo-signature" id="75c2cc6caf8bcb9c42a34afc31e1ccd0447bf7b5">
<pre>-- <br></pre>
<div>Cheers,</div>
<div>M</div>
</span>
</div>
</blockquote>
</blockquote>
<div><br></div>
</body>
</html>
Correct reply started in plain text and switched to HTML:
<html>
<head></head>
<body>
<div><br></div>
<div class="-x-evo-signature-wrapper">
<span class="-x-evo-signature" id="75c2cc6caf8bcb9c42a34afc31e1ccd0447bf7b5">
<pre>-- <br></pre>
<div>Cheers,</div>
<div>M</div>
</span>
</div>
<div><br></div>
<div>On Tue, 2021-04-20 at 19:33 +0200, wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test2</div>
<div>On Tue, 2021-04-20 at 19:32 +0200, wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test</div>
</blockquote>
</blockquote>
</body>
</html>
For comparison, reply started in Thunderbird:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Re: test</title>
</head>
<body>
<p><br></p>
<div class="moz-signature">
<p>Cheers,<br>
M</p>
</div>
<div class="moz-cite-prefix">On 20/04/2021 19:33, wrote:<br></div>
<blockquote type="cite" cite="mid:047d577ff7651e795573de3c35812f63d602e305.camel@aim.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>test2</div>
<div>On Tue, 2021-04-20 at 19:32 +0200, wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>test</div>
<div class="-x-evo-signature-wrapper">
<span class="-x-evo-signature" id="none"></span>
</div>
</blockquote>
</blockquote>
</body>
</html>