Closed PsLanger closed 6 months ago
Yeah it's possible, you can export the whole settings like this:
this will export the templates for Write / Reply / Forward and any of the checkboxes on these pages.
%header.set()%
should be "high-fidelity" - it should accept whatever you hand to it without change. Generally there may be some issues with spaces in HTML (encoding) but I don't think it applies to subject lines. I will test it with one of my templates as well next...Yeah it is reproducible here, no need to send your template :
Looks like there is a (likely unnecessary) call to trim()
in my modifyHeader
function:
The other purpose of the line is to replace potential whitespace / line breaks, I think this was designed to highlight an arbitrary portion from a text and copy it then paste it in the subject line (using the clipboard keyword), for example:
%header.append(subject,clipboard)%
by the way you can also concatenate multiple arguments, like so:
%header.set(subject,"[honeybadgers] ","Hi ",clipboard," here is your latest news!")%
Of course calling trim()
may still have it's unwanted side effects here, so I will remove it for now, I don't think it will create any huge side effects:
To install the test version above, download the zip file and drag the it into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)
Seems to be working, nice. Already bought pro yesterday for great service. ;)
My second idea was an variable to force space like (what it already has done betreen characters/words if you don't format in html). Could be a solution if the trim should be necessary anyway.
Seems to be working, nice. Already bought pro yesterday for great service. ;)
My second idea was an variable to force space like (what it already has done betreen characters/words if you don't format in html). Could be a solution if the trim should be necessary anyway.
yes, that may be a solution, as it is what the name processing - such as %recipient(firstname,lastname,mail,work.department,work.organization)%
- already does. It simply concatenates the elements it can find in the addressbook and delimits them with a space. By the way another pitfall with spaces, my example in the previous comment had a mistake; SmartTemplates generally doesn't like the space after a comma that delimits parameters, and can lead to wrong results.
Fixed in 4.5 released on 14/05/2024
Hi, i've tried to add a space after the header subject text, but this doesn't work, even if i try to add two space.
In Detail: I've made a template for new E-Mails with: %header.set(subject,"[Example] ")% but the space after ] doesn't appear in the header, even with two spaces or plain text without brackets. Space seens to work only if there are character before an after it, at the beginning it also doesn't work.
Is this a bug?
Regards