Closed Bug 201280 Opened 21 years ago Closed 21 years ago

Broken wrapping of sigantures with long-line mails (format=flowed)

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 155015

People

(Reporter: kalin, Assigned: sspitzer)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

On several occasions I noticed that my signature gets incorrectly wrapped (or
say unwrapped) when sending mails with long lines (I have mailnews.wraplength
set to 0 in prefs.js, so no wrapping).

When I have lines ending with spaces, tehy get put on one line. So a signature
like this:
-- 
||///_ o  *****************************
||//,_/>     WWW: http://ThinRope.net/ 
|||\ <" 
|||\\ ' 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

is displayed on 3 lines instead of 5 in Sent folder afterwards as:
-- 
||///_ o  *****************************
||//,_/>     WWW: http://ThinRope.net/ |||\ <"                               
|||\\ '                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The source of the MSG (from the same Sent folder) looks okay, on 5 lines.


Reproducible: Always

Steps to Reproduce:
1. Turn off wrapping (set 0 to wrap at, in Preferences)
2. Compose a plain text MSG with a siganture like mine (ending in spaces)
3. Send it to somebody (yourself).
4. Look in the Sent folder for your MSG.
Actual Results:  
Siganture is unwrapped bad (but is ok in the source of the MSG)

Expected Results:  
Sigature is displayed as it is in the source, which is the same as the displayed
MSG before sending.

It works ok, if wrapping is set to say 70 chars.
Both times the header is:
Content-Type: text/plain; charset=us-ascii; format=flowed
but without wrapping the lines are long.

I though I am using some special characters like ' and " and there is trouble
with escaping, but not. I tried with signature like:

A  aaaaaaaaaaaaaaaaaaaaaaaaaa
B  
C  
D ddddddddddddddddddddddddddd

and it gets also:

A  aaaaaaaaaaaaaaaaaaaaaaaaaa
B  C  D ddddddddddddddddddddddddddd 

I see Bug #168420 will be the primary source for format=flowed bugz, commenting
there as well.
Let me try to understand. You have white space at the end of some lines of your
signature. This remains there and hence is interpreted as line continuation. Right?

Does this also happen if you have whitespace at the end of lines you tpye before
the signature?

pi
Well, may be this is the same as bug #155015

I tried several more cases, the extreme being:

A  aaaaaaaaaaaaaaaaaaaaaaaaaa
B  
C  
D ddddddddddddddddddddddddddd

-- 
A  aaaaaaaaaaaaaaaaaaaaaaaaaa
B
C
D ddddddddddddddddddddddddddd

In the body there are spaces after B and C, in the signature there are no
spaces. The body got wrapped to two lines (instead of 4), signature is okay.

Which makes me mark this duplicate of bug #155015 ... Sorry, I should have
tested more before posting.

*** This bug has been marked as a duplicate of 155015 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.