Closed Bug 74109 Opened 23 years ago Closed 23 years ago

Signature text with spaces is Sent Incorrectly

Categories

(MailNews Core :: Composition, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 57800

People

(Reporter: jeff.hedlund, Assigned: bugzilla)

Details

If a signature file has spaces before text, MailNews adds an additional space 
to that line.  For example: 

signature.txt:
 This line has a space before the text
This line has no space before the text

as shown in composition (shows correctly):
 This line has a space before the text
This line has no space before the text

view of resulting sent message (from another client):
  This line has a space before the text
This line has no space before the text

Note:  If sent to self, it still shows correctly.  But if the same mail is 
looked at from a client other than MailNews, the extra space can be seen.
Forgot to mention that deleting a space in the composition window will send the 
signature with the correct amount of spaces.  It does not work in my one space 
example below however, but it does with two: 

signature2.txt:
  2 spaces in front of this line.
No spaces in front of this line.

in compose:
  2 spaces in front of this line.
No spaces in front of this line.

remove 1 space in front of the first line in the composition:
 2 spaces in front of this line.
No spaces in front of this line.

resulting sent signature:
  2 spaces in front of this line.
No spaces in front of this line.

(if a space had not been deleted, the resulting sent sig would have been:
   2 spaces in front of this line.
No spaces in front of this line.

[note the 3 spaces])
More information.  I sent an email from MailNews to an online account with the
following text:

1234567890123456
 one space
  two spaces
   three spaces
    four spaces
     five spaces
      six spaces
       seven spaces
        eight spaces
        tab
                two tabs

The resulting e-mail, from the online copy, is this:
12345678901234567
  one space
   two spaces
    three spaces
     four spaces
      five spaces
       six spaces
        seven spaces
         eight spaces
	tab
		two tabs

Interestingly enough, the copy in my sent folder (through MailNews) looks like this:


12345678901234567
 one space
  two spaces
   three spaces
    four spaces
     five spaces
      six spaces
       seven spaces
        eight spaces
    tab
        two tabs

Which the tabs are a little off.  (but tabs are a little broken in composer
anyway, perhaps another bug:  If you tab it moves one space over until you start
typing then it moves the eight spaces over, pressing tab twices results in two
spaces until you start typing, then it moves over 16 spaces, and so on).

So the problem appears to be with any lines in an email that begin with spaces--
it adds 1 space.
duplicate of "The lines in signature file gets an extra space if the line begins
with one."

*** This bug has been marked as a duplicate of 57800 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified dup.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.