RealRaven2000/SmartTemplates

Auto-Fill content for `%to%`, `%recipient%` and `%from%` when clicking Contact context menu "Compose Message To"

RealRaven2000 opened this issue · 2 comments

After clicking the context menu item on a recipient to Compose Message To, the variables %to%, %from% and %recipient% are not automatically resolved with data:

image

Instead, the field has to be clicked first to fill in the name:

image

after clicking the fields:

image

This should happen automatically, if there is data available (when writing to a contact this way, the "to" header is available when composer loads. The fields should still remain clickable in case additional recipients are added or the recipient is changed.

Here is a version that works with %to% and %recipient%. %subject% might work as well but you would have to set it first with %header.set(subject,"some text")% beforehand, because otherwise the subject will be empty anyway when writing a new mail.

Preview version:

smartTemplate-fx-4.4pre13.zip


to install the test version, download the zip file and then drag the file into Thunderbird Add-ons Manager (do not extract contents).

Implemented in 4.4 - published 28/03/2024