Last Comment Bug 271312 - Tab in folded (wrapped) subject line displays incorrectly in thread pane (problematic HTAB==0x09 is used for header folding in Subject: header text)
: Tab in folded (wrapped) subject line displays incorrectly in thread pane (pro...
Status: RESOLVED WORKSFORME
[fixed_by_Tb 3.2pre/Sm2.2pre]
:
Product: MailNews Core
Classification: Components
Component: Backend (show other bugs)
: 1.9.2 Branch
: x86 All
: -- normal with 12 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
: 273096 278408 288660 310333 328536 331137 338737 359928 363671 467097 (view as bug list)
Depends on: 64948 593337
Blocks: 586981 467731
  Show dependency treegraph
 
Reported: 2004-11-22 17:56 PST by Jason Haar
Modified: 2010-09-10 07:04 PDT (History)
35 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description Jason Haar 2004-11-22 17:56:09 PST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

E-mail headers are allowed to be wrapped - e.g. if they are too long.

However Thunderbird 0.9 doesn't appear to unwrap. I've noticed a fair amount of
e-mails to me now have these weird chars half-way through the Subject line
(directory pane). If I double-click on that message to bring it up into its own
window I then see "this is the           text" - where that whitespace might be
"\s\t".

Reproducible: Always
Steps to Reproduce:
1. Create by hand an e-mail with a Subject header with a continuation line
2. e.g "Subject: this is a\ttest"
3. view in Thunderbird

Actual Results:  
See "this is a[X]test" in directory pane, and "this is a       test" in message
pane.

Expected Results:  
Should have said "this is atest"?

Confirmed that Outlook views it as "this is atest" - i.e. the tab was removed as
it was a continuation char.
Comment 1 Malcolm Smith 2004-12-06 05:56:58 PST
I can confirm this on Linux Thunderbird 0.7.3 (20040819).

According to RFC2822 section 2.2.3, a newline followed by whitespace should be
removed. The whitespace itself should NOT be removed.

However, certain other software seems to think that <newline><tab> should be
replaced with <space>. When Thunderbird displays such a message, it correctly
displays the tab as a small space in the message pane. But in the message list,
 it incorrectly displays an "NL" placeholder.

This does not happen with lines properly wrapped using <newline><space>, such as
are generated by Thunderbird itself.
Comment 2 Kenneth Herron 2005-01-14 10:27:31 PST
*** Bug 278408 has been marked as a duplicate of this bug. ***
Comment 3 Kenneth Herron 2005-01-14 10:40:16 PST
Confirming. I see this with TB 1.0 on windows XP. When a subject line is wrapped
in the message source, and the continued line is indented with a tab character,
the tab appears in the message list pane as a little filled rectangle.

When I double-click on the message to open it in a separate window, the title
bar of the window (based on the message subject) contains a little rectangle for
the tab character.

In the subject line of the preview pane or of the separate message window, the
tab appears as a wider-than-normal space.

The wider-than-normal space effect can also be reproduced in a trunk copy of TB
for solaris/gtk2, though the other two effects don't appear. 
Comment 4 Mike Cowperthwaite 2005-01-18 15:48:50 PST
*** Bug 273096 has been marked as a duplicate of this bug. ***
Comment 5 Mike Cowperthwaite 2005-01-18 15:59:52 PST
Seamonkey bug 240924.

(In reply to comment #0)
> Expected Results:  
> Should have said "this is atest"?

As noted in comment 1, this is not the expected result; the whitespace is 
supposed to remain.
Comment 6 Stewart Gordon 2005-03-01 06:56:24 PST
It's failing (Mozilla 2005022009 Mac OS X) even if it's just a space, not a tab.  If there's one space 
(which is how Mozilla itself breaks lines) then it appears as three spaces in the thread pane and  
composition window, but only one space in the header of the message pane.

Should we make this part of this bug?
Comment 7 Magnus Holmgren 2005-03-03 16:39:21 PST
IMVHO, in this very specific case Thunderbird could break the RFC just a little 
and convert such tabs to spaces, because:

1) tabs in subject lines don't do much sense anyway,
2) those black boxes are ugly, and
3) almost everyone else use tabs to indent folded lines, because
   a) in just about all other fields, tabs and spaces are equivalent, and
   b) it increases readability.
Comment 8 Mike Cowperthwaite 2005-04-03 12:24:28 PDT
*** Bug 288660 has been marked as a duplicate of this bug. ***
Comment 9 Jerry Baker 2005-09-28 11:17:11 PDT
*** Bug 310333 has been marked as a duplicate of this bug. ***
Comment 10 Mike Cowperthwaite 2006-02-25 13:14:34 PST
*** Bug 328536 has been marked as a duplicate of this bug. ***
Comment 11 Pascal De Vuyst 2006-04-24 14:23:30 PDT
I'm using Thunderbird 1.5.
The little rectangles still appear and make Thunderbird look unfinished and unprofessional.
Please convert these tabs characters by spaces as suggested by Magnus.
Comment 12 Justin Kerk 2006-05-21 20:48:00 PDT
*** Bug 338737 has been marked as a duplicate of this bug. ***
Comment 13 Stephen Warren 2006-09-12 10:32:04 PDT
I am seeing this problem using Thunderbird 1.5.0.5 on Windows XP.

In my case, mailman is what is indenting the wrapped subject lines with TAB characters. mailman is very popular software!

Here is a dump of an example message header:

0002020   C   c   :  sp  nl   S   u   b   j   e   c   t   :  sp   [   B
0002040   u   i   l   d   b   o   t   ]  sp   B   u   i   l   d   B   o
0002060   t  sp   S   U   C   C   E   S   S  nl  ht   (   B   l   d   _
0002100   g   s   s   d   k   _   g   s   s   d   k   _   t   e   s   t
0002120   _   2   0   0   6   _   0   9   _   1   2   _   0   0   _   0
0002140   1   _   0   0   _   I   n   c   r   e   m   e   n   t   a   l
0002160   _   2   )  nl   X   -   B   e   e   n   T   h   e   r   e   :

Given this issue still exists in Thunderbird 1.5.x, should the bug's version field be update to make this bug appear relevant?
Comment 14 Mike Cowperthwaite 2006-09-18 18:42:29 PDT
*** Bug 331137 has been marked as a duplicate of this bug. ***
Comment 15 Eliot Lear 2006-09-25 12:02:30 PDT
Me too.  This bug leads to the odd case that when you cut and paste the subject line it does not match the subject line.  Converting to a space would not violate the principle of least astonishment, IMHO.
Comment 16 cignangulo 2006-11-08 13:16:42 PST
*** Bug 359928 has been marked as a duplicate of this bug. ***
Comment 17 Genady 2006-12-02 01:41:15 PST
I have some messages with autowrapped subject and in which <nl><tab> should be removed and not replaced by a space. I don't know what the software is,
but I have this line in the headers:
X-Mailer: Internet Mail Service (5.5.2657.72)
I hope it helps.
Comment 18 Mike Cowperthwaite 2006-12-19 09:29:53 PST
*** Bug 363671 has been marked as a duplicate of this bug. ***
Comment 19 Mike Cowperthwaite 2006-12-19 09:31:17 PST
At the dupe, reporter notes that the odd character displays also in the preview text in the new message alert.
Comment 20 Chris Petersen 2007-05-14 16:51:26 PDT
Not sure why RFC 2822 was recommended before, but RFC 822 is the one usually used for email standards.  Its section 3.1.1. "LONG HEADER FIELDS" talks about multiple whitespace characters being allowed, but does clearly state that the whitespace character should be honored during unfolding.

However, the pictogram version of the tab character (a right-arrow in my case) that I see in TBird is really annoying, and given the prominent use of tabs in header fields to indent "for looks" I would personally like see Thunderbird be consistent and display them as a single space in the list view like it does in the message preview pane and "view" window.
Comment 21 Phil Ringnalda (:philor) 2007-05-14 17:12:17 PDT
(In reply to comment #20)
> Not sure why RFC 2822 was recommended before

Probably because the third line in 2822 is "Obsoletes: 822"
Comment 22 Chris Petersen 2007-05-14 17:25:11 PDT
That would be a good reason.  :)

Either way, my understanding of this ticket is mainly that there is inconsistent behavior in TBird.  The list displays the tab character visually as either a full tab or (in my case) an arrow character, and the message panes just treat it as any other old whitespace.
Comment 23 Wayne Mery (:wsmwk, use Needinfo for questions) 2007-05-14 18:58:51 PDT
if i remember david correct, the message pane uses a slightly different source for the subject - semi related to bug 172104.  perhaps these bugs could be fixed at the same time?
Comment 24 Phillip Susi 2007-10-09 09:51:11 PDT
Wow this bug is ancient.  It can't be that hard to fix; I mean it's just a header parser fix to strip out the \n\t.  

I can confirm that it is still annoying me in 2.0.0.6.

Comment 25 cignangulo 2007-10-16 06:23:34 PDT
It might be fruitful to update in particular the 'version' label for the bug not to be ignored as out-of-date.
Comment 26 Jay Hilliard 2007-10-18 18:09:56 PDT
I can confirm another 800 users it's annoying (2.0.0.6)
It's even more annoying because we have mailman, and typically have longer Subject lines.

Please update the importance of this issue so it gets some attention! It's been years!
Comment 27 Thomas Keller 2008-02-09 15:11:39 PST
Using webkit now, this long-standing annoyance is no longer a problem... ;)
Comment 28 Kevin Samson 2008-10-12 08:51:56 PDT
Still in 2.0.0.17.  However this bug doesn't break threading view, even with subjects without the tab character, thank goodness.

Perhaps someone can just make a plugin to strip the subject?
Comment 29 jh.mozilla 2009-02-02 07:05:21 PST
FWIW, the same happens when you want save an attachment with a long, folded filename, e.g.

Content-Disposition: attachment; filename="this_is_a_very_long_filename_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxx
	_xxxx_xxxx.xxxxxx.image"

instead of stripping the tab, the file is saved as "this_is_a_very_long_filename_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxx<tab>_xxxx_xxxx.xxxxxx.image", which makes no sense whatsoever...

I really hope this get's fixed soon...
Comment 30 Wayne Mery (:wsmwk, use Needinfo for questions) 2009-02-02 07:38:59 PST
(In reply to comment #29)
> FWIW, the same happens when you want save an attachment with a long, folded
> filename, e.g.

i believe there is a different bug on that.
Comment 31 WADA 2009-09-07 20:28:02 PDT
*** Bug 467097 has been marked as a duplicate of this bug. ***
Comment 32 Phillip Susi 2010-03-18 10:17:28 PDT
It is still here in thunderbird 3.0.3, though instead of showing the bad glyph trying to print the hard tab, the thread view just removes the tab, smashing the words before and after together.  It should replace the tab with a space, which is what happens when you open the message in its own tab.
Comment 33 Jay Hilliard 2010-03-18 10:25:39 PDT
Good Grief, how many years until this is fixed?
Comment 34 Nathan Tuggy (:tuggyne) 2010-03-25 13:34:04 PDT
*** Bug 553280 has been marked as a duplicate of this bug. ***
Comment 35 WADA 2010-09-05 19:41:38 PDT
(In reply to comment #32)
> It is still here in thunderbird 3.0.3, though instead of showing the bad glyph
> the thread view just removes the tab, smashing the words before and after together.

It's Bug 553280(I dupe'ed to Bug 593337)/Bug 593337 for new phenomenon at thread pane with Tb 3.0(and Tb 3.1). See Bug 593337 Comment #15 for check result with trunk builds(Tb 3.2pre/Sm 2.2pre).
Next can be said.
1. This bug never occurs at thread pane after Tb 3.0(fixed by Tb 3.0),
   because Tab is removed upon Subject display at thread pane.
   And, by Tb 3.0, Bug 553280/Bug 593337 is generated.
2. Bug 553280/Bug 593337 is fixed by Tb 3.2pre/Sm 2.2 pre. 

(In reply to comment #29)
> FWIW, the same happens when you want save an attachment with a long, folded
> filename, (snip)

For "Wrong Tab for folding at mid of name/filename parameter value", see Bug 593337 Comment #14, and open separate bug if you believe it's still big problem, please. jh.mozilla@plonk.de, please keep "one problem per a bug".
Comment 36 Jay Hilliard 2010-09-05 23:47:36 PDT
Thank you!!! I've seen that this appears to be fixed in TB 3+ (on Linux). I really appreciate you addressing this issue.  Sweet!
Comment 37 WADA 2010-09-10 07:02:43 PDT
Closing as WORKSFORME.

Note You need to log in before you can comment on or make changes to this bug.


Privacy Policy