Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

URLs in HTML signature appear twice when the message is viewed as text

more options

In Thunderbird, I've created an HTML signature using <a> elements around URLs:

<a href="https://yesik.it">http://yesik.it</a>

When I send a message using this signature, it is displayed as expected if the recipient is viewing the message as HTML. But if it views the TEXT version of the message, the URL appear twice:

http://yesik.it <https://yesik.it>

I'm pretty sure I once used a "-moz-XXX" class with the <a> element to avoid that behavior. But I can't find the reference to that anywhere. Or is there some other solution?

In Thunderbird, I've created an HTML signature using <a> elements around URLs: <a href="https://yesik.it">http://yesik.it</a> When I send a message using this signature, it is displayed as expected if the recipient is viewing the message as HTML. But if it views the TEXT version of the message, the URL appear twice: http://yesik.it <https://yesik.it> I'm pretty sure I once used a "-moz-XXX" class with the <a> element to avoid that behavior. But I can't find the reference to that anywhere. Or is there some other solution?

Ændret af sylvain.leroux den

Valgt løsning

I've found my issue. The HTML to TXT converter didn't catch the link and the link text to be the same thing ... because I didn't use the same protocol (it's a typo, a missing "s" replaced "https" by "http")

Concerning the second part of my question, Thunderbirds supports indeed a couple of magic class used for the TXT<-->HTML conversion of links:

See https://dxr.mozilla.org/mozilla-central/source/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#449

Læs dette svar i sammenhæng 👍 0

Alle svar (1)

more options

Valgt løsning

I've found my issue. The HTML to TXT converter didn't catch the link and the link text to be the same thing ... because I didn't use the same protocol (it's a typo, a missing "s" replaced "https" by "http")

Concerning the second part of my question, Thunderbirds supports indeed a couple of magic class used for the TXT<-->HTML conversion of links:

See https://dxr.mozilla.org/mozilla-central/source/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp#449