为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

HTML to plain text conversion issue

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Rybak

more options

When I recieve an email reply in HTML format, like this example:

text text

2014-01-01 15:27 GMT+00:00 <mymail@mail.com>: > quoted text

and reply it in plain text format (I checked the settings to use plain text only), texts with email are duplicated. This is how it looks like then: email <mailto: email>

> 2014-01-01 15:27 GMT+00:00 <mymail@mail.com > <mailto:mymail@mail.com>>:

Is it a bug? Or can I fix it somehow to get back this correct format?

> 2014-01-01 15:27 GMT+00:00 <mymail@mail.com>:

Imagine what happens when you reply this e-mail 10 times, hundreds of email addresses appear in the e-mail body.

'''When I recieve an email reply in HTML format, like this example:''' ''text text'' ''2014-01-01 15:27 GMT+00:00 <mymail@mail.com>:'' ''> quoted text'' '''and reply it in plain text format (I checked the settings to use plain text only), texts with email are duplicated.''' '''This is how it looks like then: email <mailto: email>''' ''> 2014-01-01 15:27 GMT+00:00 <mymail@mail.com '' ''> <mailto:mymail@mail.com>>:'' '''Is it a bug? Or can I fix it somehow to get back this correct format?''' ''> 2014-01-01 15:27 GMT+00:00 <mymail@mail.com>:'' '''Imagine what happens when you reply this e-mail 10 times,''' '''hundreds of email addresses appear in the e-mail body.'''

由Rybak于修改

被采纳的解决方案

所有回复 (3)

more options

Hmm, don't you think TB is just showing you all the HTM bloat/cruft lurking beneath the surface? Would you want it to automatically edit out any of the existing content?

Users who send HTML to you will probably not understand what they're doing wrong ( ;-) ) nor appreciate what you're doing to their messages when you reply in plain text.

由Zenos于修改

more options

Well, it is usually not needed in the email when you use colors etc.

The thing is that the conversion is not correct. If I force TB to show plain text (from menu) instead of HTML and reply it, everything is perfect - but I would not see any HTML and I don't want it.

This is HTML source <a href="mailto:mymail@mail.com" target="_blank">mymail@mail.com</a>

And you get this when you convert it to plain text mymail@mail.com <mailto:mymail@mail.com>

You should get only the email back mymail@mail.com

When the person replies back in HTML format, it converts email addresses to HTML, so there are 2 links of the same email. Then I convert it to plain text and you have 4 addresses.

I made a small test with this and sent it in HTML format <a href="mailto:test@mail.com">User</a> <a href="mailto:mail@mail.com">mail@mail.com</a>

(User <mailto:test@mail.com> mail@mail.com)

First line is always converted correctly and remains the same, only the second line is duplicated into mymail@mail.com <mailto:mymail@mail.com>

Basically, if the "name" and email address is the same, only the email should remain which does not happen now

由Rybak于修改

more options

选择的解决方案

I see, it is reported bug already https://bugzilla.mozilla.org/show_bug.cgi?id=780365