jeevatkm / ReplyWithHeaderMozilla

Outlook style headers and few goodies for Thunderbird
https://myjeeva.com/replywithheader-mozilla
Mozilla Public License 2.0
46 stars 22 forks source link

Plain text emails: Reply above quote, but the cursor is placed at the very end when replying to/forwarding messages #176

Open turekv opened 3 months ago

turekv commented 3 months ago

1) In Account Settings > Composition & Addressing, select "When quoting, [ start my reply above the quote ]" 2) Reply to (or forward) an arbitrary message.

Expected result:

Actual result:

Additional information:

jeevatkm commented 3 months ago

@turekv Thanks for reaching out.

I tried to test it at my end on my MacBookPro TB v128.1.1esr with RWH v3.2.0 just a while ago, but I'm unable to reproduce it. Unfortunately, I do not have Windows 10/11 with me. Is it happening on Windows 10 or 11?

I may have to contact the TB developer channel for advice.

turekv commented 3 months ago

Thank you. I am experiencing the issue on multiple computers -- some are running Windows 10 x64 and others Windows 11 x64. Once I get to my other machines running Linux, I'll test it on those as well.

The problem started happening after updating TB to v.128, so my first thought was, 'Ah, well, I'll just have to set everything up again using a new profile...' However, that helped to resolve the problem only on some -- but not all -- machines (hence my report).

jeevatkm commented 3 months ago

Thanks for the details. Please try it on Linux, too. In the meantime, I will explore details with the TB add-on community.

FYI, RWH v3.0.0 was a complete rewrite from the ground up for TB v125 and above using the Mail/Web Extension model. That's why you have lost RWH configs from the legacy add-on model.

turekv commented 3 months ago

Ok, thank you. I will report back once I test things in Linux. (Please note that, unfortunately, it may take several weeks before I get to the respective machines.)

turekv commented 3 months ago

To speed things up, I've set up a new Linux (Lubuntu 24.04 x64) VM with TB v.128.1.0esr. The salient setting that triggers the issue is plain text composition of new messages (Account Settings > Composition & Addressing > uncheck "Compose messages in HTML format").

With HTML composition enabled, the cursor is placed as it should be (at the beginning of the message body). With HTML composition disabled, the cursor is placed at the very end.

When I tried enabling HTML composition on my Windows machines where RWH did not work as expected (you guessed it -- those were the ones with HTML composition disabled...), the problem went away.

jeevatkm commented 3 months ago

@turekv Good findings, thanks. With HTML composition enabled, cursor placement works as expected. TB might be having an issue with plain text emails. Could you report to the TB team?

However, can you please validate the behavior before you report it to the TB team? Let's uninstall RWH entirely and see if the same behavior persists. Otherwise, my RWH add-on might be doing something wrong; currently, I do not know what it is.

turekv commented 3 months ago

When I disable (or even uninstall) RWH, the cursor is placed as it should be even when plain text composition of new messages is selected in account settings. It seems that RWH must be the culprit...

jeevatkm commented 3 months ago

Thanks for confirming it. So, I need to find a way to address it.

jeevatkm commented 3 months ago

I'm sorry for asking again. It is occurring regardless of OS, correct?

turekv commented 3 months ago

No problem. Yes, I tested it in both Windows and Linux, and the behaviour was identical.

jeevatkm commented 2 months ago

@turekv FYI - https://thunderbird.topicbox.com/groups/addons/T587bff64c458a524/compose-window-cursor-placement-and-user-composition-setting

turekv commented 2 months ago

Thanks!

bacasani commented 2 months ago

I experience exact the same issue, it works fine in html but not plain text the cursor always goes to the bottom, if I disable RWH then it works as expected in plain text. I'm on macOS Monterey 12.7.6

jeevatkm commented 2 months ago

@bacasani Thanks for your input. I do not know how to fix it currently. I process plain text emails using TB APIs in the same way as HTML. I also created a post on the TB add-on developers community on Aug 27, but I have not yet received any response :(

bacasani commented 2 months ago

Sure, thanks