Unexpected italic text in plain text message (quoted-printable), starting from a forward slash in </a> as text
Categories
(Thunderbird :: Message Reader UI, defect)
Tracking
(Not tracked)
People
(Reporter: mozilla, Unassigned)
Details
Attachments
(2 files)
Steps to reproduce:
A message (see attached file - private headers removed) I crafted in PHP resulted in a part italic text, where there should be no italic text.
Version: 102.3.3 (64-Bit)
Actual results:
italic text where there shouldn't be one
Expected results:
No italic text
Comment 1•3 years ago
|
||
Bla "<a href=3D"#">foo2</a>" =C3=B6ffnen: https://www.example.com/foo/i=
ndex.php?bar/
Updated•3 years ago
|
Comment 2•3 years ago
•
|
||
This is caused by the forward slashes. Thunderbird recognizes a couple of formatting markers like *bold*, /italics/, _underline_ in plaintext messages, which is by design. Not sure if it can be switched off.
However, it's a little bit surprising in your case why the slash in </a> gets recognized as a starting point of italic. Maybe an artifact or edge case. Not something we would worry much about. Is it a problem for you?
Comment 3•3 years ago
|
||
This is reporter's testcase in message reader.
Updated•3 years ago
|
Well it might confuse customers when they see the plain message and the whole email is in italic. This might not happen often, but when using the customers name (which in this example is "<a href="#">foo2</a>"), it will occur. It might even occur for other character constellations, I don't know.
Updated•3 years ago
|
Comment 5•3 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #2)
This is caused by the forward slashes. Thunderbird recognizes a couple of formatting markers like
*bold*, /italics/, _underline_in plaintext messages, which is by design. Not sure if it can be switched off.
Yes, set the Pref mail.display_struct to FALSE.
http://kb.mozillazine.org/Plain_text_e-mail_%28Thunderbird%29#Structured_Text
Comment 6•3 years ago
|
||
(In reply to Thomas D. (:thomas8) from comment #2)
However, it's a little bit surprising in your case why the slash in </a> gets recognized as a starting point of italic.
It's a text/plain message and not HTML.
(In reply to Alfred Peters from comment #5)
(In reply to Thomas D. (:thomas8) from comment #2)
This is caused by the forward slashes. Thunderbird recognizes a couple of formatting markers like
*bold*, /italics/, _underline_in plaintext messages, which is by design. Not sure if it can be switched off.Yes, set the Pref
mail.display_structto FALSE.http://kb.mozillazine.org/Plain_text_e-mail_%28Thunderbird%29#Structured_Text
Yeah but I cannot tell my customers to do that ;)
Is there any way to escape it in PHP without breaking something else in other mail clients?
Comment 8•3 years ago
|
||
(In reply to Alfred Peters from comment #6)
(In reply to Thomas D. (:thomas8) from comment #2)
However, it's a little bit surprising in your case why the slash in </a> gets recognized as a starting point of italic.
It's a
text/plainmessage and not HTML.
I know that, the "</a>" is in the plain text (weird enough), I thought maybe leading slash must be preceded by a space to be taken as italics, but apparently not.
Comment 9•3 years ago
|
||
Ah OK, I got that wrong.
https://searchfox.org/comm-central/source/mozilla/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#613
| bool mozTXTToHTMLConv::StructPhraseHit( ...
| /* We're searching for the following pattern:
| LT_DELIMITER - "" - ALPHA -
| [ some text (maybe more ""-pairs) - ALPHA ] "*" - LT_DELIMITER.
| <strong> is only inserted, if existence of a pair could be verified
| We use the first opening/closing tag, if we can choose */
See also: Bug 950605, Bug 950606, Bug 106028
This might be a dupe of Bug 950606?
Description
•