Bug in composer, HTML: "From " become ">From " (">From " in source)

Hi

One of users of my extension send me a very strange bug report.
> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:

After tests I found this bug is not related to my extension, but to 
Thunderbird itself.

Here are steeps required to reproduce this bug:

1) Open new HTML mail.
2) Type "From " (characters case and trailing space matters)
3) Press [CTRL+S], save in Drafts.
4) now go to Drafts, and see message... it become ">From " (">From " 
in HTML source)


My TB:
Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105

Can someone verify this bug?
I dig Bugzilla, but i don't found this ot similar bug.


-- 
Arivald
0
Arivald
11/25/2008 2:09:28 PM
mozilla.dev.apps.thunderbird 3449 articles. 0 followers. Post Follow

11 Replies
661 Views

Similar Articles

[PageSpeed] 0

Hi Arivald,

can't see that with my TB version 2.0.0.18 (20081105) en-US installation.
Checked with composing a HTML and a plain msg. Also the 'view source' 
doesn't has that &gr.

Just to double check:
I have entered to the compose text area as the very first entry
From

.... nothing else

gW

On 25.11.2008 15:09 »Arivald« wrote
> Hi
>
> One of users of my extension send me a very strange bug report.
>> I think I may have found a bug.  Was composing an email, and I saved 
>> it, and when I reopened it, there was the "greater than" character 
>> (HTML "&gt") inserted right before a capital F in the text:
>
> After tests I found this bug is not related to my extension, but to 
> Thunderbird itself.
>
> Here are steeps required to reproduce this bug:
>
> 1) Open new HTML mail.
> 2) Type "From " (characters case and trailing space matters)
> 3) Press [CTRL+S], save in Drafts.
> 4) now go to Drafts, and see message... it become ">From " (">From 
> " in HTML source)
>
>
> My TB:
> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
>
> Can someone verify this bug?
> I dig Bugzilla, but i don't found this ot similar bug.
>
>
0
gNeandr
11/25/2008 5:07:26 PM
gNeandr pisze:
> Hi Arivald,
> 
> can't see that with my TB version 2.0.0.18 (20081105) en-US installation.
> Checked with composing a HTML and a plain msg. Also the 'view source' 
> doesn't has that &gr.
> 
> Just to double check:
> I have entered to the compose text area as the very first entry
> From
> 
> ... nothing else
> 
> gW
> 


Thanks for checking, but...

1) Are you sure you do it in HTML mode? Plain-text is unaffected.

2) Tricky part:
   1) Save message in "Drafts",
   2) and then open it (again) from "Drafts".

Original message in Composer window You use to save will remain unchanged.
You may have opened two copies of message, one original, and one opened 
from "Drafts", and only copy from "Drafts" gets additional ">".

-- 
Arivald
0
Arivald
11/25/2008 5:42:30 PM
Arivald wrote:
> Hi
>
> One of users of my extension send me a very strange bug report.
>   
>> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:
>>     
>
> After tests I found this bug is not related to my extension, but to 
> Thunderbird itself.
>
> Here are steeps required to reproduce this bug:
>
> 1) Open new HTML mail.
> 2) Type "From " (characters case and trailing space matters)
> 3) Press [CTRL+S], save in Drafts.
> 4) now go to Drafts, and see message... it become ">From " (">From " 
> in HTML source)
>
>
> My TB:
> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
>
> Can someone verify this bug?
> I dig Bugzilla, but i don't found this ot similar bug.
>
>
>   
Yes, I reproduce that, tb2 and 3, not using stationery (test profile in 3)


Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.18) 
Gecko/20081105 Lightning/0.9 Thunderbird/2.0.0.18 - Build ID: 2008110519

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b2pre) 
Gecko/20081124 Shredder/3.0b1pre ID:20081124033907
0
ovidiu
11/25/2008 6:10:04 PM
On Tue, 25 Nov 2008 15:09:28 +0100, Arivald wrote:

> One of users of my extension send me a very strange bug report.
>> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:
> 
> After tests I found this bug is not related to my extension, but to 
> Thunderbird itself.
> 
> Here are steeps required to reproduce this bug:
> 
> 1) Open new HTML mail.
> 2) Type "From " (characters case and trailing space matters)
> 3) Press [CTRL+S], save in Drafts.
> 4) now go to Drafts, and see message... it become ">From " (">From " 
> in HTML source)
> 
> 
> My TB:
> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
> 
> Can someone verify this bug?
> I dig Bugzilla, but i don't found this ot similar bug.

<http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html>

This is a bug in the sense that the ">" shouldn't be escaped into &gt;
Actually I'm not sure how html mail should be stored in a mbox file so
this may be a bug on multiple levels.

Phil

-- 
Philip Chee <philip@aleytys.pc.my>, <philip.chee@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.

0
Philip
11/25/2008 6:25:01 PM
Philip Chee wrote:
> On Tue, 25 Nov 2008 15:09:28 +0100, Arivald wrote:
>> One of users of my extension send me a very strange bug report.
>>     
>>> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:
>>>       
>> After tests I found this bug is not related to my extension, but to 
>> Thunderbird itself.
>>
>> Here are steeps required to reproduce this bug:
>>
>> 1) Open new HTML mail.
>> 2) Type "From " (characters case and trailing space matters)
>> 3) Press [CTRL+S], save in Drafts.
>> 4) now go to Drafts, and see message... it become ">From " ("&gt;From " 
>> in HTML source)
>>
>>
>> My TB:
>> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
>>
>> Can someone verify this bug?
>> I dig Bugzilla, but i don't found this ot similar bug.
>>     
>
> <http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html>
>
> This is a bug in the sense that the ">" shouldn't be escaped into &gt;
> Actually I'm not sure how html mail should be stored in a mbox file so
> this may be a bug on multiple levels.
>
> Phil
>
>   

For me only on Local Folders, I see the '>From ' substitution. Drafts on
IMAP Folder work normally. Apparently only Local Folders use mboxo
format? In view source I also see normal '>', no escaping to &gt;...

Onno
0
Onno
11/25/2008 7:16:03 PM
On 25.11.2008 18:42 »Arivald« wrote
> Thanks for checking, but...
>
> 1) Are you sure you do it in HTML mode? Plain-text is unaffected.
>
> 2) Tricky part:
>   1) Save message in "Drafts",
>   2) and then open it (again) from "Drafts".
>
> Original message in Composer window You use to save will remain 
> unchanged.
> You may have opened two copies of message, one original, and one 
> opened from "Drafts", and only copy from "Drafts" gets additional ">".
>
Also the others have seen that situation, I have double checked and 
don't have it !

Yes, I was in HTML mode, yes I stored to Drafts. Yes, I closed the 
compose and open the stored draft from DRAFTS!


With 'view source' pointing on the Drafts folder with the message/draft 
I get:

    From - Tue Nov 25 20:13:50 2008
    X-Mozilla-Status: 0000
    X-Mozilla-Status2: 00000000
    X-Mozilla-Keys:                                                                                 
    FCC: mailbox://nobody@Local%20Folders/Sent
    X-Identity-Key: id1
    X-Mozilla-News-Host: news.mozilla.com
    Date: Tue, 25 Nov 2008 20:13:49 +0100
    From: gNeandr <neandr_NO@SPAM_gmx_._de>
    X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; uuencode=0
    User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
    MIME-Version: 1.0
    Newsgroups: mozilla.dev.apps.thunderbird
    X-Mozilla-News-Host: news.mozilla.com
    Subject: from in news
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: 7bit

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    </head>
    <body bgcolor="#ffffff" text="#000000">
    <font face="Arial">From<br>
    <br>
    </font>
    </body>
    </html>
      

.... which seems to be OK. Also the opened draft has only the "From" in the compose window. And that's right FMPOV!??

</html>

0
gNeandr
11/25/2008 7:20:35 PM
On 25.11.2008 20:16 �Onno Ekker� wrote
> Philip Chee wrote:
>   
>> On Tue, 25 Nov 2008 15:09:28 +0100, Arivald wrote:
>>     
>>> One of users of my extension send me a very strange bug report.
>>>     
>>>       
>>>> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:
>>>>       
>>>>         
>>> After tests I found this bug is not related to my extension, but to 
>>> Thunderbird itself.
>>>
>>> Here are steeps required to reproduce this bug:
>>>
>>> 1) Open new HTML mail.
>>> 2) Type "From " (characters case and trailing space matters)
>>> 3) Press [CTRL+S], save in Drafts.
>>> 4) now go to Drafts, and see message... it become ">From " ("&gt;From " 
>>> in HTML source)
>>>
>>>
>>> My TB:
>>> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
>>>
>>> Can someone verify this bug?
>>> I dig Bugzilla, but i don't found this ot similar bug.
>>>     
>>>       
>> <http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html>
>>
>> This is a bug in the sense that the ">" shouldn't be escaped into &gt;
>> Actually I'm not sure how html mail should be stored in a mbox file so
>> this may be a bug on multiple levels.
>>
>> Phil
>>
>>   
>>     
>
> For me only on Local Folders, I see the '>From ' substitution. Drafts on
> IMAP Folder work normally. Apparently only Local Folders use mboxo
> format? In view source I also see normal '>', no escaping to &gt;...
>
> Onno
>   
As said before I don't see it .. not with IMAP account, not with POP. 
But my setup is that ALL storing of drafts go into one DRAFT folder 
located in the 'Local Folders'

0
gNeandr
11/25/2008 7:36:19 PM
gNeandr pisze:
> On 25.11.2008 18:42 »Arivald« wrote
>> Thanks for checking, but...
>>
>> 1) Are you sure you do it in HTML mode? Plain-text is unaffected.
>>
>> 2) Tricky part:
>>   1) Save message in "Drafts",
>>   2) and then open it (again) from "Drafts".
>>
>> Original message in Composer window You use to save will remain 
>> unchanged.
>> You may have opened two copies of message, one original, and one 
>> opened from "Drafts", and only copy from "Drafts" gets additional ">".
>>
> Also the others have seen that situation, I have double checked and 
> don't have it !
> 
> Yes, I was in HTML mode, yes I stored to Drafts. Yes, I closed the 
> compose and open the stored draft from DRAFTS!
> 
> 
> With 'view source' pointing on the Drafts folder with the message/draft 
> I get:
> 
[...]
>    <body bgcolor="#ffffff" text="#000000">
>    <font face="Arial">From<br>
>    <br>
>     
> ... which seems to be OK. Also the opened draft has only the "From" in 
> the compose window. And that's right FMPOV!??
> 

As i check: <font> tag before "From " prevents '>' insertion. Maybe 
other tags works similar too.
Also, in your source HTML, there is no space _after_ "From".

-- 
Arivald
0
Arivald
11/26/2008 9:16:42 AM
>>
>> This is a bug in the sense that the ">" shouldn't be escaped into &gt;
>> Actually I'm not sure how html mail should be stored in a mbox file so
>> this may be a bug on multiple levels.
>>
>> Phil
>>
>>   
> 
> For me only on Local Folders, I see the '>From ' substitution. Drafts on
> IMAP Folder work normally. Apparently only Local Folders use mboxo
> format? In view source I also see normal '>', no escaping to &gt;...
> 

In fact, in mbox message source it is ">From ".
"&gt;From " appears only when i reopen mail in composer, so i suspect 
composer/<editor> do '>' => '&gt;' substitution.

-- 
Arivald
0
Arivald
11/26/2008 9:21:32 AM
Philip Chee pisze:
> On Tue, 25 Nov 2008 15:09:28 +0100, Arivald wrote:
> 
>> One of users of my extension send me a very strange bug report.
>>> I think I may have found a bug.  Was composing an email, and I saved it, and when I reopened it, there was the "greater than" character (HTML "&gt") inserted right before a capital F in the text:
>> After tests I found this bug is not related to my extension, but to 
>> Thunderbird itself.
>>
>> Here are steeps required to reproduce this bug:
>>
>> 1) Open new HTML mail.
>> 2) Type "From " (characters case and trailing space matters)
>> 3) Press [CTRL+S], save in Drafts.
>> 4) now go to Drafts, and see message... it become ">From " ("&gt;From " 
>> in HTML source)
>>
>>
>> My TB:
>> Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.18) Gecko/20081105
>>
>> Can someone verify this bug?
>> I dig Bugzilla, but i don't found this ot similar bug.
> 
> <http://homepages.tesco.net./~J.deBoynePollard/FGA/mail-mbox-formats.html>
> 
> This is a bug in the sense that the ">" shouldn't be escaped into &gt;
> Actually I'm not sure how html mail should be stored in a mbox file so
> this may be a bug on multiple levels.
> 
> Phil
> 

I check link you give... now i understand why it happen in mbox. But i 
think additional '>' should be stripped while message HTML is extracted 
from mbox.
Or maybe space (' ') should be used, like in plain-text messages? And 
this additional space is correctly removed from plain-text mails.

-- 
Arivald
0
Arivald
11/26/2008 9:27:06 AM
Arivald wrote:
>>>
>>> This is a bug in the sense that the ">" shouldn't be escaped into &gt;
>>> Actually I'm not sure how html mail should be stored in a mbox file so
>>> this may be a bug on multiple levels.
>>>
>>> Phil
>>>
>>>   
>>
>> For me only on Local Folders, I see the '>From ' substitution. Drafts on
>> IMAP Folder work normally. Apparently only Local Folders use mboxo
>> format? In view source I also see normal '>', no escaping to &gt;...
>>
>
> In fact, in mbox message source it is ">From ".
> "&gt;From " appears only when i reopen mail in composer, so i suspect
> composer/<editor> do '>' => '&gt;' substitution.

What exactly is Composer? Is it the same as "Insert HTML"? Is it an
extension?

Every '<', '>', and '&' is escaped when you edit a message as HTML,
because they have special meaning in HTML.

The only strange thing I see is that 'From ' lines get substituted by
'>From ' and it seems to happen
 in an irreversible way. On re-opening the editor can't just strip each
'>' from '>From ', because it would also strip that character from a
real line starting with '>From '...

From what I read in Phil's link, this only holds for the "mboxo" and
"mboxcl" formats. This line might get substituted in '>From what...'
when replying to this message. So you'll get lines like:
>From ...
>>From ...

Maybe Thunderbird could change the way internal messages are saved, so
it doesn't save them in an irreversible way. Maybe "mboxrd" or "mboxcl2"
is more convenient, because they don't change messages irreversibly?

Or maybe Thunderbird could change from mailbox to maildir format for
local messages?

Onno
0
Onno
11/26/2008 10:00:06 AM
Reply:

Similar Artilces:

What is this for? "<label style=""display:none;"" for=""" & cboFieldType.ClientID.ToString & """>Type</label>"
I'm digging through the code of DNN and I found many ocurrences of this type of code: lblFieldType.Text = "<label style=""display:none;"" for=""" & cboFieldType.ClientID.ToString & """>Type</label>" What is that code for? The label is never displayed and I could not figure out what DDN uses it for. thank you This is for ADA compliance. The guidelines require that form elements have an associated label. This helps the text readers out with identifying the different parts of the form. BruceDynamic...

Regular Expression to remove "/", "\", "<", ">" and "="
Can anyone please show me the regular expression to reject a string ("<blue", "right>" etc.) which has the following expression in it: "/", "\", "<", ">" and "="  hi, It may Help u.. it is in Class file u may use this expressin in validation controls also. Regex objReg = new Regex(@"^[^,.?/\~|`;:'<>]*$", RegexOptions.Singleline); Regex objReg = new Regex(@"^[^,][^.][^?][^/][^\][^~|][^`][^;][^:][^'][[^<][^>]$", RegexOptions.IgnoreCase);Thanks &...

"<->" as "->" with automatic "is rw"
I like that arguments will be readonly by default. But when I look at my current code, I see that I would be typing " is rw" quite a lot, which in my opinion is too long for a thing that occurs very often. Every such situation in my code is a foreach loop. A thing that in Perl 6 will mostly be used with the pointy sub declaration syntax. If I'm not mistaken, <-> is still available. It communicates "bidirectional" and that is more or less the same as read/write access. I'm proposing for zip(@foos, @bars, @xyzzies) <-> $foo, $bar, $xyzz...

.ALLCOL("%COLUMN%", " ", ", ", ", ")
Do you know anyway for me to exclude a subset of columns returned by this function. We have two columns (rec_user and rec_datetime) which are in all of our tables, but when generating triggers I want automatically generate a script which does not include those two columns but does include all other columns in that table. Bruce I should add that I am using PD 9.0.0.580. Bruce "Bruce Lamb" <lamb.bruce@mayo.edu> wrote in message news:6HgI315nCHA.155@forums.sybase.com... > Do you know anyway for me to exclude a subset of columns returned by this > function. ...

Precedence of "where" ("of", "is", "will")?
Nobody on #perl6 today could answer this one. Is: Str | Int where { $_ } the same as: (Str | Int) where { $_ } or: Str | (Int where { $_ }) ? Followup questions, Mr. President: What kind of operators are "where", "of", "is", and "will"? Is there a reason that S03 doesn't list them? What are their precedence(s)? -- Chip Salzenberg - a.k.a. - <chip@pobox.com> Open Source is not an excuse to write fun code then leave the actual work to others. Chip Salzenberg writes: &...

RFE: for "%%" becoming to "&&" as "//" is to "||"; the "defined(x) && expr" operator...
In looking at the 5.10 perl5op doc's, I was thinking about the "//" operator and how in an expression "a // b" it tests 'definedness' the left-hand-side and returns it if it is defined, otherwise, it returns the right hand side. The idea being that you might normally use "||" but if the 'lhs' could be integer '0', it wouldn't work as desired. I think it could be useful to provide an equivalent operator for '&&', say '%%', that tests 'defined(lhs)' and if true, returns the 2nd part (rig...

quotes, quotes, quotes...
I am getting this error and I know what is causing it, but I have no idea how to fix it, any help would be great. The script steps through the /var/log/messages file on a linux server and puts The entries into a mysql database. However when it gets to the 'hlt' line in the messages file it just barfs. The single quotes are freaking it out. I know about quotes but not how to use in this situation. Thanks, Paul Error: May 27 17:53:00 localhost kernel: Checking 'hlt' instruction... OK. <----- doesn't like this in the messages file DBD::mysql::st exec...

No "Available layouts" to "Add>>" to "Active layouts"
I have US English, Russian and Ukrainian languages in Country/Region & Language. The list of "Available layouts" is empty, any suggestions what to do? Before I removed few packages using YAST, so probably I miss some package? -- magner58 ------------------------------------------------------------------------ > The list of "Available layouts" is empty, any suggestions what to do? i am confused....where are you seeing this "Available layouts"? is that in YaST System > Languages, or ??? -- DenverD (Linux Counter 282315)...

Difference between "=>" and ">=" in Perl !
------=_Part_2548_4517779.1216878348485 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I could be a very basic question but I am unable to find any answers on internet. What's the difference between "=>" and ">=" in Perl ? To the best of my knowledge, ">=" means greater than or equal to and "=>" is just used instead of comma to distinguish between key and values while assigning a hash. I am unable to justify the output of the following program (for &quo...

"Web Site" versus New "Project" >> "Visual C#" >> "ASP.NET Web Application"?
What is the difference in creating a new "Web Site" versus New "Project" >> "Visual C#" >> "ASP.NET Web Application" ?  When and why should I use one over the other?  Thank you in advance and I look forward to your answers! Web Application Project is an addin to VS. There are a few differences but for the short answer, it uses more of an older 1.1 style for compilation and distribution.   So, I should use create Web Site? There's a detailed comparison here.Basically the difference is web application projects have a physical project file and resemble...

Query performance of "=" vs "<" and ">"
Suppose you have a large table (>5 million records) containing 15 columns including a numerical string column called ACTIVITY_DATE which is indexed (nonunique, nonclustered) and a numerical string column called TIMESTAMP which is indexed (nonunique,nonclustered). ACTIVITY_DATE contains a date string ('20081211'); TIMESTAMP also appends a time ('20081211 19:18:03.34923'). Suppose you want to return all events that took place on December 11th and suppose you had to choose between the following queries: - select col1,col2,col3 from TABLE where ACTIVITY_DATE='2...

Query performance of "=" vs "<" and ">"
[This is a repost from ase.general] Suppose you have a large table (>5 million records) containing 15 columns including a numerical string column called ACTIVITY_DATE which is indexed (nonunique, nonclustered) and a numerical string column called TIMESTAMP which is indexed (nonunique,nonclustered). ACTIVITY_DATE contains a date string ('20081211'); TIMESTAMP also appends a time ('20081211 19:18:03.34923'). Suppose you want to return all events that took place on December 11th and suppose you had to choose between the following queries: - select col1,col2,col...

what's the different from "<page src="">" and "<page codeBehind="">"
what's the different from "<page src="">" and "<page codeBehind="">" Thank YOU how to make session' life longer? Thank You This very question was asked only 5 days ago. Searching the forums would have yielded the answer you require. However, see this thread. Steven BeyRecursion: see Recursion You can set a new value for the Session Timeout in your web.config file. Or, you can do it in a page through this property: Session.Timeout Note that if you choose the second method, the timeout will only be modified on this page,...

replace the "." with a ","
Oi.... I need to build a small programm in ASP.NET and chose to use C# for it.Now i got everything working but there's one little problem.the first textbox is a double. I need to make it so that when someone enters a "." then it gets replaced by a ","any ideas?Ghan  string blah = "4.2.2.2";blah = blah.Replace(".", ",");Ryan Ryan OlshanASPInsider | Microsoft MVP, ASP.NEThttp://ryanolshan.comHow to ask a question...

Web resources about - Bug in composer, HTML: "From " become ">From " ("&gt;From " in source) - mozilla.dev.apps.thunderbird

Resources last updated: 1/17/2016 1:55:39 PM