mail icon indicating copy to clipboard operation
mail copied to clipboard

"New message" body has a line break by default, leading to various small issues

Open jancborchardt opened this issue 3 years ago β€’ 3 comments

Steps to reproduce

  1. Click "New message"
  2. Select the message body

Expected behavior

There is no content at all in the message body, which would also make the placeholder "Write message …" appear.

Actual behavior

There is a line break by default in the body of a new message, resulting in:

  • The placeholder "Write message …" not being visible
  • An empty line at the top of your mail if you click into the body and start writing only on the second line (not knowing it is not the first line) Mail app 2 empty lines

Possibly this behavior is because we added an extra line break when you reply to a message, so it’s not directly stuck to the quote part below. (The behavior on reply is wanted though and should stay how it is, unlike this for new messages.)

Mail app version

Current on cloud.nc.com

Mailserver or service

No response

Operating system

No response

PHP engine version

No response

Web server

No response

Database

No response

Additional info

No response

jancborchardt avatar Mar 21 '22 10:03 jancborchardt

IIRC we do this because of a possible signature. So if there is no signature we should initialize the editor with an empty string, not the line break(s).

ChristophWurst avatar Mar 21 '22 10:03 ChristophWurst

I don't know if this issue is still really open. In my case (mail 3.7.7) :

  • If there is no signature configured : creating a new message results in the expected behaviour πŸ‘ image

  • If there is a signature configured : creating a new message results in :

    • line break in the body
    • line break between signature separator (--) and signature text image

I think a better behavior should be in this case :

  • empty string in the body
  • no line break between signature separator (--) and signature text

@jancborchardt , @ChristophWurst , What do you think about it? Thanks a lot.

StefInP avatar Aug 28 '24 21:08 StefInP

Fine by me

ChristophWurst avatar Aug 28 '24 21:08 ChristophWurst

I think a better behavior should be in this case :

  • empty string in the body
  • no line break between signature separator (--) and signature text

Agree on no line break between signature separator and text.

But for the body, there should be 2 empty lines before the separator. 1 for writing, 1 for white space between message text and the separator. Like so

Hi this is my message

--
I am me

jancborchardt avatar Aug 29 '24 10:08 jancborchardt