New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tb115 - account template not loaded when changing From address #256
Comments
It appears that the new event handler "compose-from-changed" calls // old code
window.addEventListener("compose-from-changed", SmartTemplate4.loadIdentity);
// new code:
window.addEventListener("compose-from-changed", SmartTemplate4.loadIdentity.bind(SmartTemplate4)); After fixing that, on top of that I am still having problems when detecting the change - because changing the identity during this is a problem because I do not allow changing the mail text if it was already modified (in my mind, this flag is / should be reserved for the user having edited the email) |
Ok, here is the bigger picture: the problem is exactly when I would need the |
Just playing this through - Thunderbird (I believe falsely) also resets the |
Since I cannot determine reliably whether the body was modified when the user changes the identity, I have decided to prompt them: Clicking OK will discard anything that was written by the user since composer started, Cancel will leave the contents of the email unchanged (It may swap the signature out though). smartTemplate-fx-4.1.1pre10.zip To install the preview version above, please download the zip file and then drag the file into Thunderbird Add-ons Manager. Do not extract file contents, as they won't install. |
Implemented in 4.2.1, published 25/09/2023 |
When selecting a different identity, the new one isn't selected in SmartTemplates 4.1. instead we see the following error log:
The text was updated successfully, but these errors were encountered: