Open Bug 1857091 Opened 2 years ago Updated 6 months ago

Odd "From "-escaping when composing plain text messages

Categories

(MailNews Core :: Composition, defect)

defect

Tracking

(Not tracked)

People

(Reporter: benc, Unassigned)

References

Details

When composing plain-text emails, there seems to be some odd escaping rules applied to lines beginning with "From " - it prepends such lines with a space char.

There's a reference to this scheme called mbox_modern, but I think it's a TB-specific hack.

Anyway. Composition should just produce valid RFC5322 messages and leave it at that. No mbox escaping should be applied.

Steps to Reproduce:

  1. Run TB with an account set up
  2. Set composition to plain text
  3. write a message to yourself with content like this:
    foo
    From bar
    >>>From wibble
    pibble
    
  4. When delivered, click on the new message and "view source" (without "view source", the message display hides this issue).

Observed - those lines in the body are prepended by a space:

foo
 From bar
 >>>From wibble
pibble

Expected - message body should be exactly as entered (no spaces!):

foo
From bar
>>>From wibble
pibble

Other notes:

  • The copy in the Sent folder includes the extra spaces too (not too surprising)
  • Messages sent from other clients don't do this (eg via gmail web interface - make sure you click "Plain text mode" when composing your message!).

Dupe of Bug 1800997!?

See Also: → 1800997
You need to log in before you can comment on or make changes to this bug.