Open Bug 1780196 Opened 2 years ago Updated 4 months ago

Allow flowed text via MailExtension compose API

Categories

(Thunderbird :: Add-Ons: Extensions API, enhancement)

Thunderbird 91
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: frederick888, Unassigned)

Details

Steps to reproduce:

  1. Make sure mailnews.send_plaintext_flowed is set to true
  2. Configure mail account to send plain text emails
  3. Open a new email composing window
  4. Use compose API setComposeDetails() to update its contents. isPlainText = true, plainTextBody has a trailing space at the end of each line

Actual results:

Trailing spaces are removed when the the email is sent, and the text isn't flowed despite having Content-Type: text/plain; charset=UTF-8; format=flowed.

Expected results:

Trailing spaces are preserved as if the text were physically typed into Thunderbird's email editor.

This allows extensions (and their users) to decide if they want flowed format. For example, I have a request at https://github.com/Frederick888/external-editor-revived/issues/48.

Tested on 102.0.3 and got the same result as well.

I made a proposal in https://github.com/Frederick888/external-editor-revived/issues/48#issuecomment-2122520905

Feedback is appreciated (best to keep the discussion on GitHub in this case).

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